Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ else:
|
|
119 |
return "Occluded",score
|
120 |
|
121 |
f = st.file_uploader('Upload an Image',type=(["jpeg","jpg","png"]))
|
122 |
-
|
123 |
#st.subheader("Prediction of Occluded or Not Occluded")
|
124 |
images1 = ["img1.png","img2.png","img3.png","img4.png"]
|
125 |
with st.sidebar:
|
@@ -128,10 +128,10 @@ else:
|
|
128 |
|
129 |
if f is None:
|
130 |
st.write("Please upload an image file")
|
131 |
-
else:
|
132 |
#stringio = StringIO(f.getvalue())
|
133 |
#f = stringio.read()
|
134 |
-
image1= Image.open(f)
|
135 |
#st.write(type(f.name))
|
136 |
st.image(image1,use_column_width = True)
|
137 |
#image_path = Path(f.name)
|
|
|
119 |
return "Occluded",score
|
120 |
|
121 |
f = st.file_uploader('Upload an Image',type=(["jpeg","jpg","png"]))
|
122 |
+
st.write(f)
|
123 |
#st.subheader("Prediction of Occluded or Not Occluded")
|
124 |
images1 = ["img1.png","img2.png","img3.png","img4.png"]
|
125 |
with st.sidebar:
|
|
|
128 |
|
129 |
if f is None:
|
130 |
st.write("Please upload an image file")
|
131 |
+
else:
|
132 |
#stringio = StringIO(f.getvalue())
|
133 |
#f = stringio.read()
|
134 |
+
image1= Image.open(f.name)
|
135 |
#st.write(type(f.name))
|
136 |
st.image(image1,use_column_width = True)
|
137 |
#image_path = Path(f.name)
|