Spaces:
Build error
Build error
testing restart button
Browse files
app.py
CHANGED
|
@@ -75,14 +75,17 @@ def main():
|
|
| 75 |
st.title("Bulk Image Classification DEMO")
|
| 76 |
col1, col2 = st.columns([3, 1])
|
| 77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
with col1:
|
| 79 |
st.markdown("This app uses several 🤗 models to classify images stored in 🤗 datasets.")
|
| 80 |
st.write("Soon we will have a dataset template")
|
| 81 |
|
| 82 |
-
|
| 83 |
-
#if st.button("Restart"):
|
| 84 |
-
## Code to restart or reset your app goes here
|
| 85 |
-
# st.experimental_rerun()
|
| 86 |
|
| 87 |
#Model
|
| 88 |
chosen_model_name = st.selectbox("Select the model to use", MODELS, index=0)
|
|
|
|
| 75 |
st.title("Bulk Image Classification DEMO")
|
| 76 |
col1, col2 = st.columns([3, 1])
|
| 77 |
|
| 78 |
+
# Restart or reset your app
|
| 79 |
+
if st.button("Restart"):
|
| 80 |
+
# Code to restart or reset your app goes here
|
| 81 |
+
st.experimental_rerun()
|
| 82 |
+
|
| 83 |
+
|
| 84 |
with col1:
|
| 85 |
st.markdown("This app uses several 🤗 models to classify images stored in 🤗 datasets.")
|
| 86 |
st.write("Soon we will have a dataset template")
|
| 87 |
|
| 88 |
+
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
#Model
|
| 91 |
chosen_model_name = st.selectbox("Select the model to use", MODELS, index=0)
|