Spaces:
Build error
Build error
done
Browse files
app.py
CHANGED
|
@@ -36,27 +36,26 @@ def main():
|
|
| 36 |
st.title("Bulk Image Classification")
|
| 37 |
st.markdown("This app uses several 🤗 models to classify images stored in 🤗 datasets.")
|
| 38 |
st.write("Soon we will have a dataset template")
|
| 39 |
-
st.write("**Soon we will have dataset selector**")
|
| 40 |
|
| 41 |
|
| 42 |
'''
|
| 43 |
Model
|
| 44 |
'''
|
| 45 |
shosen_model_name = st.selectbox("Select the model to use", MODELS)
|
| 46 |
-
if
|
| 47 |
st.write("You selected", shosen_model_name)
|
| 48 |
|
| 49 |
'''
|
| 50 |
Dataset
|
| 51 |
'''
|
| 52 |
shosen_dataset_name =st.radio("Select the model to use", MODELS)
|
| 53 |
-
if
|
| 54 |
st.write("You selected", shosen_dataset_name)
|
| 55 |
image_object = dataset['pasta'][0]["image"]
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
if shosen_model is not None and shosen_dataset is not None:
|
| 61 |
st.image(shosen_dataset[0], caption="Uploaded Image", use_column_width=True)
|
| 62 |
if st.button("Classify images"):
|
|
|
|
| 36 |
st.title("Bulk Image Classification")
|
| 37 |
st.markdown("This app uses several 🤗 models to classify images stored in 🤗 datasets.")
|
| 38 |
st.write("Soon we will have a dataset template")
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
'''
|
| 42 |
Model
|
| 43 |
'''
|
| 44 |
shosen_model_name = st.selectbox("Select the model to use", MODELS)
|
| 45 |
+
if shosen_model_name is not None:
|
| 46 |
st.write("You selected", shosen_model_name)
|
| 47 |
|
| 48 |
'''
|
| 49 |
Dataset
|
| 50 |
'''
|
| 51 |
shosen_dataset_name =st.radio("Select the model to use", MODELS)
|
| 52 |
+
if shosen_dataset_name is not None:
|
| 53 |
st.write("You selected", shosen_dataset_name)
|
| 54 |
image_object = dataset['pasta'][0]["image"]
|
| 55 |
+
|
| 56 |
+
'''
|
| 57 |
+
click to classify
|
| 58 |
+
'''
|
| 59 |
if shosen_model is not None and shosen_dataset is not None:
|
| 60 |
st.image(shosen_dataset[0], caption="Uploaded Image", use_column_width=True)
|
| 61 |
if st.button("Classify images"):
|