tharu22 commited on
Commit
e47e4de
·
1 Parent(s): c865e04
Files changed (1) hide show
  1. app.py +2 -1
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}/continent/{selected_continent}")
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