saritha5 commited on
Commit
bc3dd53
·
1 Parent(s): 8966317

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -43,10 +43,10 @@ if page == "Blurred or Not Blurred Prediction":
43
  """)
44
  st.subheader("Prediction of Blur or NotBlur Image")
45
  images = ["blur1.png","blurimg2.png","blurimg3.png","images_11.jpeg"]
46
- #with st.sidebar:
47
- # st.write("choose an image")
48
- # st.image(images)
49
- #model_file_path = "mobile_net_occ.h5"
50
 
51
  ##Blurriness Features
52
 
@@ -121,17 +121,17 @@ else:
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:
126
- st.write("choose an image")
127
- st.image(images1)
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)
 
43
  """)
44
  st.subheader("Prediction of Blur or NotBlur Image")
45
  images = ["blur1.png","blurimg2.png","blurimg3.png","images_11.jpeg"]
46
+ with st.sidebar:
47
+ st.write("choose an image")
48
+ st.image(images)
49
+ model_file_path = "mobile_net_occ.h5"
50
 
51
  ##Blurriness Features
52
 
 
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:
126
+ #st.write("choose an image")
127
+ #st.image(images1)
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)