Spaces:
Sleeping
Sleeping
no message
Browse files
app.py
CHANGED
@@ -51,18 +51,18 @@ def classify_full_dataset(shosen_dataset_name, chosen_model_name):
|
|
51 |
|
52 |
#dataset
|
53 |
dataset = load_dataset(shosen_dataset_name,"testedata_readme")
|
54 |
-
with SCROLLABLE_TEXT:
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
|
60 |
#modle instance
|
61 |
classifier_pipeline = pipeline('image-classification', model=chosen_model_name)
|
62 |
#COLS[1].write("### FLAG 4")
|
63 |
|
64 |
#classification
|
65 |
-
classification_result = classifier_pipeline(image_object)
|
66 |
SCROLLABLE_TEXT.write(classification_result)
|
67 |
#COLS[1].write("### FLAG 5")
|
68 |
#classification_array.append(classification_result)
|
|
|
51 |
|
52 |
#dataset
|
53 |
dataset = load_dataset(shosen_dataset_name,"testedata_readme")
|
54 |
+
#with SCROLLABLE_TEXT:
|
55 |
+
#Image teste load
|
56 |
+
image_object = SCROLLABLE_TEXT.dataset['pasta'][0]["image"]
|
57 |
+
SCROLLABLE_TEXT.image(image_object, caption="Uploaded Image", width=300)
|
58 |
+
#st.write("### FLAG 3")
|
59 |
|
60 |
#modle instance
|
61 |
classifier_pipeline = pipeline('image-classification', model=chosen_model_name)
|
62 |
#COLS[1].write("### FLAG 4")
|
63 |
|
64 |
#classification
|
65 |
+
classification_result = SCROLLABLE_TEXT.classifier_pipeline(image_object)
|
66 |
SCROLLABLE_TEXT.write(classification_result)
|
67 |
#COLS[1].write("### FLAG 5")
|
68 |
#classification_array.append(classification_result)
|