Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ elif option == "Image Classification":
|
|
43 |
candidate_labels = [t.strip() for t in text.split(',')]
|
44 |
image = Image.open(uploaded_file)
|
45 |
st.image(image, caption="Uploaded Image", use_column_width=True)
|
46 |
-
classification_result = imgpipe(image, candidate_labels)
|
47 |
for result in classification_result:
|
48 |
st.write(f"Label: {result['label']}, Score: {result['score']}")
|
49 |
else:
|
|
|
43 |
candidate_labels = [t.strip() for t in text.split(',')]
|
44 |
image = Image.open(uploaded_file)
|
45 |
st.image(image, caption="Uploaded Image", use_column_width=True)
|
46 |
+
classification_result = imgpipe(image, candidate_labels=candidate_labels)
|
47 |
for result in classification_result:
|
48 |
st.write(f"Label: {result['label']}, Score: {result['score']}")
|
49 |
else:
|