Update app.py
Browse files
app.py
CHANGED
@@ -59,9 +59,9 @@ def main():
|
|
59 |
if ip_address:
|
60 |
country_name = get_country_info(ip_address)
|
61 |
if country_name:
|
62 |
-
flag_url = get_country_flag(country_name)
|
63 |
st.success(f"IP Address: {ip_address}")
|
64 |
st.success(f"Country: {country_name}")
|
|
|
65 |
st.image(flag_url, caption=f"Flag of {country_name}", width=100)
|
66 |
else:
|
67 |
st.error("Could not retrieve country information.")
|
|
|
59 |
if ip_address:
|
60 |
country_name = get_country_info(ip_address)
|
61 |
if country_name:
|
|
|
62 |
st.success(f"IP Address: {ip_address}")
|
63 |
st.success(f"Country: {country_name}")
|
64 |
+
flag_url = get_country_flag(country_name)
|
65 |
st.image(flag_url, caption=f"Flag of {country_name}", width=100)
|
66 |
else:
|
67 |
st.error("Could not retrieve country information.")
|