Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ else:
|
|
96 |
#plt. figure(figsize=(10,9))
|
97 |
def occ_predict(img_content):
|
98 |
im = []
|
99 |
-
image1 =
|
100 |
|
101 |
#st.write(img_content)
|
102 |
#st.write(type(img_content))
|
@@ -132,7 +132,7 @@ 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)
|
138 |
#st.write(image_path)
|
|
|
96 |
#plt. figure(figsize=(10,9))
|
97 |
def occ_predict(img_content):
|
98 |
im = []
|
99 |
+
image1 = matplotlib.pyplot.imread(img_content)
|
100 |
|
101 |
#st.write(img_content)
|
102 |
#st.write(type(img_content))
|
|
|
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)
|
138 |
#st.write(image_path)
|