Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -16,8 +16,8 @@ def get_current_weather(location: str) -> str:
|
|
| 16 |
|
| 17 |
try:
|
| 18 |
response = requests.get(
|
| 19 |
-
"
|
| 20 |
-
params={"key": api_key, "q": location
|
| 21 |
timeout=10
|
| 22 |
)
|
| 23 |
response.raise_for_status()
|
|
|
|
| 16 |
|
| 17 |
try:
|
| 18 |
response = requests.get(
|
| 19 |
+
"https://weatherapi-com.p.rapidapi.com/current.json?q=53.1%2C-0.13",
|
| 20 |
+
params={"key": api_key, "q": location},
|
| 21 |
timeout=10
|
| 22 |
)
|
| 23 |
response.raise_for_status()
|