Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,8 @@ if submit:
|
|
50 |
| -------- | -------- | -------- | -------- |
|
51 |
'''
|
52 |
md = st.empty()
|
53 |
-
|
|
|
54 |
new_md = ''
|
55 |
for id, j in enumerate(i):
|
56 |
new_md += f'''|{id + 1}|{j[0]}|{j[1]}|{j[2]}|\n'''
|
|
|
50 |
| -------- | -------- | -------- | -------- |
|
51 |
'''
|
52 |
md = st.empty()
|
53 |
+
with st.spinner():
|
54 |
+
i = AirQualityQuery.air_quality_by_province_country(country, province)
|
55 |
new_md = ''
|
56 |
for id, j in enumerate(i):
|
57 |
new_md += f'''|{id + 1}|{j[0]}|{j[1]}|{j[2]}|\n'''
|