Spaces:
Build error
Build error
no message
Browse files
app.py
CHANGED
|
@@ -27,6 +27,7 @@ def classify_images(classifier_model, dataset_to_classify):
|
|
| 27 |
st.write(results)
|
| 28 |
st.write("----")
|
| 29 |
'''
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
|
|
@@ -54,13 +55,22 @@ def main():
|
|
| 54 |
|
| 55 |
'''
|
| 56 |
click to classify
|
|
|
|
| 57 |
'''
|
| 58 |
if shosen_model_name is not None and shosen_dataset_name is not None:
|
| 59 |
if st.button("Classify images"):
|
|
|
|
|
|
|
| 60 |
dataset = load_dataset(shosen_dataset_name,"testedata_readme")
|
| 61 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
classifier = pipeline('image-classification', model=shosen_model_name, device=0)
|
| 63 |
-
|
|
|
|
| 64 |
|
| 65 |
|
| 66 |
|
|
|
|
| 27 |
st.write(results)
|
| 28 |
st.write("----")
|
| 29 |
'''
|
| 30 |
+
return "done"
|
| 31 |
|
| 32 |
|
| 33 |
|
|
|
|
| 55 |
|
| 56 |
'''
|
| 57 |
click to classify
|
| 58 |
+
image_object = dataset['pasta'][0]
|
| 59 |
'''
|
| 60 |
if shosen_model_name is not None and shosen_dataset_name is not None:
|
| 61 |
if st.button("Classify images"):
|
| 62 |
+
st.write("# FLAG 1")
|
| 63 |
+
|
| 64 |
dataset = load_dataset(shosen_dataset_name,"testedata_readme")
|
| 65 |
+
st.write("# FLAG 2")
|
| 66 |
+
|
| 67 |
+
st.image(dataset['pasta'][0], caption="Uploaded Image", use_column_width=True)
|
| 68 |
+
#st.image(dataset[0], caption="Uploaded Image", use_column_width=True)
|
| 69 |
+
st.write("# FLAG 3")
|
| 70 |
+
|
| 71 |
classifier = pipeline('image-classification', model=shosen_model_name, device=0)
|
| 72 |
+
st.write("# FLAG 4")
|
| 73 |
+
|
| 74 |
|
| 75 |
|
| 76 |
|