Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def get_weather(city: str) -> str:
|
|
| 39 |
Args:
|
| 40 |
city: A string representing a city
|
| 41 |
"""
|
| 42 |
-
url = f"https://wttr.in/{city}?format=3" # Formato compatto
|
| 43 |
response = requests.get(url)
|
| 44 |
if response.status_code == 200:
|
| 45 |
return f"The current weather on {city} is {response.text}"
|
|
|
|
| 39 |
Args:
|
| 40 |
city: A string representing a city
|
| 41 |
"""
|
| 42 |
+
url = f"https://wttr.in/{city}?format=3&unit=C" # Formato compatto
|
| 43 |
response = requests.get(url)
|
| 44 |
if response.status_code == 200:
|
| 45 |
return f"The current weather on {city} is {response.text}"
|