Adapting commited on
Commit
e0f3b84
·
1 Parent(s): ddbfd1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -50,7 +50,8 @@ if submit:
50
  | -------- | -------- | -------- | -------- |
51
  '''
52
  md = st.empty()
53
- i = AirQualityQuery.air_quality_by_province_country(country, province)
 
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'''