Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -212,7 +212,7 @@ def get_weather_data():
|
|
| 212 |
response = requests.get(url, timeout=10) # timeout 추가
|
| 213 |
response.raise_for_status()
|
| 214 |
|
| 215 |
-
data = xmltodict.parse(
|
| 216 |
result = data['SeoulRtd.citydata']['CITYDATA']['WEATHER_STTS']['WEATHER_STTS']
|
| 217 |
|
| 218 |
return result
|
|
|
|
| 212 |
response = requests.get(url, timeout=10) # timeout 추가
|
| 213 |
response.raise_for_status()
|
| 214 |
|
| 215 |
+
data = xmltodict.parse(response.text)
|
| 216 |
result = data['SeoulRtd.citydata']['CITYDATA']['WEATHER_STTS']['WEATHER_STTS']
|
| 217 |
|
| 218 |
return result
|