url
Browse files
app.py
CHANGED
|
@@ -24,10 +24,11 @@ selected_continent = st.sidebar.selectbox(
|
|
| 24 |
# Fetch data from the FastAPI endpoint
|
| 25 |
if st.sidebar.button("Get Data"):
|
| 26 |
# Call FastAPI to get continent data
|
| 27 |
-
response = requests.get(f"{API_URL}/
|
| 28 |
|
| 29 |
if response.status_code == 200:
|
| 30 |
data = response.json()
|
|
|
|
| 31 |
st.write(data)
|
| 32 |
|
| 33 |
# Display the continent information
|
|
|
|
| 24 |
# Fetch data from the FastAPI endpoint
|
| 25 |
if st.sidebar.button("Get Data"):
|
| 26 |
# Call FastAPI to get continent data
|
| 27 |
+
response = requests.get(f"{API_URL}/{selected_continent}")
|
| 28 |
|
| 29 |
if response.status_code == 200:
|
| 30 |
data = response.json()
|
| 31 |
+
print(data)
|
| 32 |
st.write(data)
|
| 33 |
|
| 34 |
# Display the continent information
|