Update app.py
Browse files
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 = "
|
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 = "
|
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:
|