Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -94,15 +94,15 @@ if page == "Blurred or Not Blurred Prediction":
|
|
94 |
else:
|
95 |
st.title("Prediction of Occluded or not Occluded ")
|
96 |
#plt. figure(figsize=(10,9))
|
97 |
-
def occ_predict(
|
98 |
im = []
|
99 |
image1 = plt.imread(img_content)
|
100 |
|
101 |
-
st.write(img_content)
|
102 |
-
st.write(type(img_content))
|
103 |
|
104 |
img = Image.fromarray(image1, 'RGB')
|
105 |
-
st.write(type(image1))
|
106 |
resize_image = img.resize((50, 50))
|
107 |
im.append(np.array(resize_image))
|
108 |
fv = np.array(im)
|
|
|
94 |
else:
|
95 |
st.title("Prediction of Occluded or not Occluded ")
|
96 |
#plt. figure(figsize=(10,9))
|
97 |
+
def occ_predict(img_content):
|
98 |
im = []
|
99 |
image1 = plt.imread(img_content)
|
100 |
|
101 |
+
#st.write(img_content)
|
102 |
+
#st.write(type(img_content))
|
103 |
|
104 |
img = Image.fromarray(image1, 'RGB')
|
105 |
+
#st.write(type(image1))
|
106 |
resize_image = img.resize((50, 50))
|
107 |
im.append(np.array(resize_image))
|
108 |
fv = np.array(im)
|