Spaces:
Sleeping
Sleeping
no message
Browse files
app.py
CHANGED
|
@@ -11,8 +11,8 @@ MODELS = [
|
|
| 11 |
]
|
| 12 |
DATASETS = [
|
| 13 |
"",
|
| 14 |
-
"
|
| 15 |
-
"
|
| 16 |
]
|
| 17 |
MAX_N_LABELS = 5
|
| 18 |
|
|
@@ -48,7 +48,7 @@ def main():
|
|
| 48 |
'''
|
| 49 |
Dataset
|
| 50 |
'''
|
| 51 |
-
shosen_dataset_name =st.radio("Select the model to use",
|
| 52 |
if shosen_dataset_name is not None:
|
| 53 |
st.write("You selected", shosen_dataset_name)
|
| 54 |
image_object = dataset['pasta'][0]["image"]
|
|
@@ -56,7 +56,7 @@ def main():
|
|
| 56 |
'''
|
| 57 |
click to classify
|
| 58 |
'''
|
| 59 |
-
if
|
| 60 |
st.image(shosen_dataset[0], caption="Uploaded Image", use_column_width=True)
|
| 61 |
if st.button("Classify images"):
|
| 62 |
dataset = load_dataset("Nunt/testedata","testedata_readme")
|
|
|
|
| 11 |
]
|
| 12 |
DATASETS = [
|
| 13 |
"",
|
| 14 |
+
"Nunt/testedata",
|
| 15 |
+
"Nunt/backup_leonardo_2024-02-01"
|
| 16 |
]
|
| 17 |
MAX_N_LABELS = 5
|
| 18 |
|
|
|
|
| 48 |
'''
|
| 49 |
Dataset
|
| 50 |
'''
|
| 51 |
+
shosen_dataset_name = st.radio("Select the model to use", DATASETS)
|
| 52 |
if shosen_dataset_name is not None:
|
| 53 |
st.write("You selected", shosen_dataset_name)
|
| 54 |
image_object = dataset['pasta'][0]["image"]
|
|
|
|
| 56 |
'''
|
| 57 |
click to classify
|
| 58 |
'''
|
| 59 |
+
if shosen_model_name is not None and shosen_dataset_name is not None:
|
| 60 |
st.image(shosen_dataset[0], caption="Uploaded Image", use_column_width=True)
|
| 61 |
if st.button("Classify images"):
|
| 62 |
dataset = load_dataset("Nunt/testedata","testedata_readme")
|