gaialive commited on
Commit
794f0ae
·
verified ·
1 Parent(s): ce74011

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -124,9 +124,9 @@ def get_glacier_risk(city):
124
 
125
  def get_flood_risk(city):
126
  data = {
127
- "Karachi": ("Urban flood risk (monsoon)", "July–September"),
128
- "Lahore": ("Localized flooding in low-lying areas", "July–August"),
129
- "Sukkur": ("Flood risk due to Indus overflow", "August–September"),
130
  }
131
  return data.get(city.title(), ("No flood alert", "N/A"))
132
 
@@ -174,7 +174,7 @@ with tabs[0]:
174
  Chúng ta cùng tạo ra sự thay đổi!
175
  """)
176
 
177
- st.markdown("### The impact is powerfull...")
178
 
179
  image_files = ["img1.png", "img2.png", "img3.png", "img4.png", "img5.png"]
180
  cols = st.columns(5)
@@ -248,7 +248,7 @@ with tabs[1]:
248
  # ------------------------------
249
  with tabs[2]:
250
  st.subheader("📍 Real-time Climate Risk & Weather Map")
251
- city = st.text_input("🏙️ Hãy nhập tên một địa phương ở Việt Nam (VD: Laichau, Sonla, Quangtri, Hue, Quangngai, Angiang):")
252
 
253
  if city:
254
  lat, lon = get_coordinates(city)
 
124
 
125
  def get_flood_risk(city):
126
  data = {
127
+ "Son La": ("Mountainous flood risk (monsoon)", "July–September"),
128
+ "Quang Tri": ("Localized flooding in low-lying areas", "July–August"),
129
+ "An Giang": ("Saltwater intrusion risk due to sea level rise", "August–September"),
130
  }
131
  return data.get(city.title(), ("No flood alert", "N/A"))
132
 
 
174
  Chúng ta cùng tạo ra sự thay đổi!
175
  """)
176
 
177
+ st.markdown("### Tác động rất lớn...")
178
 
179
  image_files = ["img1.png", "img2.png", "img3.png", "img4.png", "img5.png"]
180
  cols = st.columns(5)
 
248
  # ------------------------------
249
  with tabs[2]:
250
  st.subheader("📍 Real-time Climate Risk & Weather Map")
251
+ city = st.text_input("🏙️ Hãy nhập tên một địa phương ở Việt Nam (VD: Lai Chau, Son La, Quang Tri, Hue, Quang Ngai, An Giang):")
252
 
253
  if city:
254
  lat, lon = get_coordinates(city)