Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def get_weather(city: str) -> str: #it's import to specify the return type
|
|
| 18 |
try:
|
| 19 |
api_url = f"https://api.weather.com/v1/location/{city}"
|
| 20 |
headers = {
|
| 21 |
-
"Authorization" : "Bearer
|
| 22 |
}
|
| 23 |
response = requests.get(api_url, headers = headers, timeout = 10)
|
| 24 |
if response.status_code ==200:
|
|
|
|
| 18 |
try:
|
| 19 |
api_url = f"https://api.weather.com/v1/location/{city}"
|
| 20 |
headers = {
|
| 21 |
+
"Authorization" : "Bearer 630428cf0ecba0c76b121473342aa8ca"
|
| 22 |
}
|
| 23 |
response = requests.get(api_url, headers = headers, timeout = 10)
|
| 24 |
if response.status_code ==200:
|