Spaces:
Build error
Build error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
|
@@ -126,9 +126,9 @@ if st.button("🔄"):
|
|
| 126 |
st.toast("Data is refreshed",icon="✅") # Reload the data
|
| 127 |
|
| 128 |
# 2. Load and early‐exit if missing
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
|
| 133 |
# 3. Data preview
|
| 134 |
st.header("Data Preview")
|
|
|
|
| 126 |
st.toast("Data is refreshed",icon="✅") # Reload the data
|
| 127 |
|
| 128 |
# 2. Load and early‐exit if missing
|
| 129 |
+
df = load_data()
|
| 130 |
+
if df.empty:
|
| 131 |
+
st.stop()
|
| 132 |
|
| 133 |
# 3. Data preview
|
| 134 |
st.header("Data Preview")
|