Spaces:
Sleeping
Sleeping
bug fix
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def classify_full_dataset(shosen_dataset_name, chosen_model_name):
|
|
39 |
dataset = load_dataset(shosen_dataset_name,"testedata_readme")
|
40 |
#Image teste load
|
41 |
image_object = dataset['pasta'][0]["image"]
|
42 |
-
st.image(image_object, caption="Uploaded Image",
|
43 |
st.write("### FLAG 3")
|
44 |
|
45 |
#modle instance
|
@@ -54,14 +54,10 @@ def classify_full_dataset(shosen_dataset_name, chosen_model_name):
|
|
54 |
|
55 |
#save classification
|
56 |
|
57 |
-
|
58 |
image_count += 1
|
59 |
|
60 |
return image_count
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
def main():
|
66 |
st.title("Bulk Image Classification DEMO")
|
67 |
st.markdown("This app uses several 🤗 models to classify images stored in 🤗 datasets.")
|
|
|
39 |
dataset = load_dataset(shosen_dataset_name,"testedata_readme")
|
40 |
#Image teste load
|
41 |
image_object = dataset['pasta'][0]["image"]
|
42 |
+
st.image(image_object, caption="Uploaded Image", width=300)
|
43 |
st.write("### FLAG 3")
|
44 |
|
45 |
#modle instance
|
|
|
54 |
|
55 |
#save classification
|
56 |
|
|
|
57 |
image_count += 1
|
58 |
|
59 |
return image_count
|
60 |
|
|
|
|
|
|
|
61 |
def main():
|
62 |
st.title("Bulk Image Classification DEMO")
|
63 |
st.markdown("This app uses several 🤗 models to classify images stored in 🤗 datasets.")
|