Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,9 +124,9 @@ def get_glacier_risk(city):
|
|
| 124 |
|
| 125 |
def get_flood_risk(city):
|
| 126 |
data = {
|
| 127 |
-
"
|
| 128 |
-
"
|
| 129 |
-
"
|
| 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("###
|
| 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:
|
| 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 là 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)
|