Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -102,6 +102,13 @@ st.sidebar.markdown(f"<span style='color: lightgray;'>API URL: {collection_url}<
|
|
102 |
# Add a fetch button to make the action explicit
|
103 |
fetch_data = True
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
if fetch_data:
|
106 |
# Display a loading spinner while fetching data
|
107 |
with st.spinner(f"Fetching data for {selected}..."):
|
|
|
102 |
# Add a fetch button to make the action explicit
|
103 |
fetch_data = True
|
104 |
|
105 |
+
|
106 |
+
# Add before the fetch_data = True line
|
107 |
+
if st.sidebar.button("Fetch Collection Data"):
|
108 |
+
fetch_data = True
|
109 |
+
else:
|
110 |
+
fetch_data = False
|
111 |
+
|
112 |
if fetch_data:
|
113 |
# Display a loading spinner while fetching data
|
114 |
with st.spinner(f"Fetching data for {selected}..."):
|