saritha5 commited on
Commit
8a68876
·
1 Parent(s): 7cc8033

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -62,7 +62,8 @@ def blurr_predict(img_iter):
62
  predicted_label = threshold(variance_score, 1)
63
  return predicted_label,variance_score
64
 
65
- image_path = "images_11.jpeg"
 
66
  predicted_label,variance_score = blurr_predict(image_path)
67
  st.header(predicted_label)
68
  #st.("The image is", '\033[1m' + str(predicted_label) + '\033[0m', "with the score value of" +str(round(variance_score,2)))
 
62
  predicted_label = threshold(variance_score, 1)
63
  return predicted_label,variance_score
64
 
65
+ #image_path = "images_11.jpeg"
66
+ image_path = st.file_uploader('Upload an Image',type=(["jpeg","jpg","png"]))
67
  predicted_label,variance_score = blurr_predict(image_path)
68
  st.header(predicted_label)
69
  #st.("The image is", '\033[1m' + str(predicted_label) + '\033[0m', "with the score value of" +str(round(variance_score,2)))