Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)))
|