Spaces:
Runtime error
Runtime error
Commit
·
f092b3a
1
Parent(s):
6bd2ac0
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,10 +36,10 @@ img = st.file_uploader("Choose an image", type=["jpg", "jpeg", "png"])
|
|
| 36 |
|
| 37 |
if img is not None:
|
| 38 |
try:
|
| 39 |
-
image = Image.open(BytesIO(img.read()))
|
| 40 |
-
output = query(
|
| 41 |
st.write("Predicted Output:", Output)
|
| 42 |
except:
|
| 43 |
-
st.write("
|
| 44 |
|
| 45 |
|
|
|
|
| 36 |
|
| 37 |
if img is not None:
|
| 38 |
try:
|
| 39 |
+
# image = Image.open(BytesIO(img.read()))
|
| 40 |
+
output = query(img)
|
| 41 |
st.write("Predicted Output:", Output)
|
| 42 |
except:
|
| 43 |
+
st.write("Please do upload the image in the correct format!")
|
| 44 |
|
| 45 |
|