Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -127,14 +127,13 @@ else:
|
|
127 |
else:
|
128 |
#stringio = StringIO(f.getvalue())
|
129 |
#f = stringio.read()
|
130 |
-
st.write(f)
|
131 |
image1= Image.open(f)
|
132 |
st.write(type(image1))
|
133 |
st.image(image1,use_column_width = True)
|
134 |
#image_path = Path(f.name)
|
135 |
#st.write(image_path)
|
136 |
|
137 |
-
predicted_label,variance_score = occ_predict(f)
|
138 |
#st.header(predicted_label)
|
139 |
#st.header(str(round(variance_score,2)))
|
140 |
string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))
|
|
|
127 |
else:
|
128 |
#stringio = StringIO(f.getvalue())
|
129 |
#f = stringio.read()
|
|
|
130 |
image1= Image.open(f)
|
131 |
st.write(type(image1))
|
132 |
st.image(image1,use_column_width = True)
|
133 |
#image_path = Path(f.name)
|
134 |
#st.write(image_path)
|
135 |
|
136 |
+
predicted_label,variance_score = occ_predict(str(f.name))
|
137 |
#st.header(predicted_label)
|
138 |
#st.header(str(round(variance_score,2)))
|
139 |
string1 = "The image is," + predicted_label + " with the score value of " + str(round(variance_score,2))
|