MallikarjunSonna commited on
Commit
6d5d4b9
·
verified ·
1 Parent(s): 07f84c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def get_weather(city: str) -> str:
33
  Returns:
34
  A string with the weather description and temperature.
35
  """
36
- api_key = "YOUR_OPENWEATHER_API_KEY" # Replace with your actual API key
37
  url = f"http://api.openweathermap.org/data/2.5/weather?q={city}&appid={api_key}&units=metric"
38
 
39
  try:
@@ -58,7 +58,7 @@ def convert_currency(amount: float, from_currency: str, to_currency: str) -> str
58
  Returns:
59
  A string with the converted currency amount.
60
  """
61
- api_key = "YOUR_EXCHANGE_RATE_API_KEY" # Replace with your actual API key
62
  url = f"https://v6.exchangerate-api.com/v6/{api_key}/latest/{from_currency}"
63
 
64
  try:
 
33
  Returns:
34
  A string with the weather description and temperature.
35
  """
36
+ api_key = "ac662b5c2463cfa522e1acd2d4cf5a81"
37
  url = f"http://api.openweathermap.org/data/2.5/weather?q={city}&appid={api_key}&units=metric"
38
 
39
  try:
 
58
  Returns:
59
  A string with the converted currency amount.
60
  """
61
+ api_key = "90171124ae953d74d1515263"
62
  url = f"https://v6.exchangerate-api.com/v6/{api_key}/latest/{from_currency}"
63
 
64
  try: