Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,9 +40,9 @@ elif option == "Image Classification":
|
|
| 40 |
text=st.text_area("Enter possible class names(comma separated")
|
| 41 |
candidate_lables=[t.strip() for t in text.split(',')]
|
| 42 |
if uploaded_files is not None:
|
| 43 |
-
|
| 44 |
|
| 45 |
-
outputs = imgpipe(
|
| 46 |
|
| 47 |
st.write(output["label"])
|
| 48 |
|
|
|
|
| 40 |
text=st.text_area("Enter possible class names(comma separated")
|
| 41 |
candidate_lables=[t.strip() for t in text.split(',')]
|
| 42 |
if uploaded_files is not None:
|
| 43 |
+
image = Image.open(requests.get(uploaded_files, stream=True).raw)
|
| 44 |
|
| 45 |
+
outputs = imgpipe(image,candidate_lables)
|
| 46 |
|
| 47 |
st.write(output["label"])
|
| 48 |
|