Spaces:
Build error
Build error
no message
Browse files
app.py
CHANGED
|
@@ -117,24 +117,24 @@ def main():
|
|
| 117 |
|
| 118 |
with CONTAINER_BODY:
|
| 119 |
|
| 120 |
-
with
|
| 121 |
st.markdown("This app uses several 🤗 models to classify images stored in 🤗 datasets.")
|
| 122 |
st.write("Soon we will have a dataset template")
|
| 123 |
|
| 124 |
#Model
|
| 125 |
chosen_model_name = st.selectbox("Select the model to use", MODELS, index=0)
|
| 126 |
if chosen_model_name is not None:
|
| 127 |
-
|
| 128 |
|
| 129 |
#Dataset
|
| 130 |
shosen_dataset_name = st.selectbox("Select the dataset to use", DATASETS, index=0)
|
| 131 |
if shosen_dataset_name is not None:
|
| 132 |
-
|
| 133 |
|
| 134 |
#click to classify
|
| 135 |
#image_object = dataset['pasta'][0]
|
| 136 |
if chosen_model_name is not None and shosen_dataset_name is not None:
|
| 137 |
-
if
|
| 138 |
|
| 139 |
#classification_array =[]
|
| 140 |
classification_result = classify_full_dataset(shosen_dataset_name, chosen_model_name)
|
|
|
|
| 117 |
|
| 118 |
with CONTAINER_BODY:
|
| 119 |
|
| 120 |
+
with COLS[0]:
|
| 121 |
st.markdown("This app uses several 🤗 models to classify images stored in 🤗 datasets.")
|
| 122 |
st.write("Soon we will have a dataset template")
|
| 123 |
|
| 124 |
#Model
|
| 125 |
chosen_model_name = st.selectbox("Select the model to use", MODELS, index=0)
|
| 126 |
if chosen_model_name is not None:
|
| 127 |
+
COLS[0].st.write("You selected", chosen_model_name)
|
| 128 |
|
| 129 |
#Dataset
|
| 130 |
shosen_dataset_name = st.selectbox("Select the dataset to use", DATASETS, index=0)
|
| 131 |
if shosen_dataset_name is not None:
|
| 132 |
+
COLS[0].st.write("You selected", shosen_dataset_name)
|
| 133 |
|
| 134 |
#click to classify
|
| 135 |
#image_object = dataset['pasta'][0]
|
| 136 |
if chosen_model_name is not None and shosen_dataset_name is not None:
|
| 137 |
+
if COLS[0].button("Classify images"):
|
| 138 |
|
| 139 |
#classification_array =[]
|
| 140 |
classification_result = classify_full_dataset(shosen_dataset_name, chosen_model_name)
|