saritha5 commited on
Commit
b708d34
·
1 Parent(s): 6ff04d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(imgpath):
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)