Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,6 +42,12 @@ st.title("""
|
|
| 42 |
Prediction of Image Blurriness
|
| 43 |
""")
|
| 44 |
#st.subheader("Prediction of Blur or NotBlur Image")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
images = ["blur1.png","bird1.jpeg","blurimg3.png","images_11.jpeg"]
|
| 46 |
with st.sidebar:
|
| 47 |
st.write("choose an image")
|
|
@@ -91,3 +97,13 @@ else:
|
|
| 91 |
string = "The image is," + str(predicted_label) + " with the score value of " + str(round(variance_score,2))
|
| 92 |
st.subheader(string)
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
Prediction of Image Blurriness
|
| 43 |
""")
|
| 44 |
#st.subheader("Prediction of Blur or NotBlur Image")
|
| 45 |
+
st.write("""Blurring, or unsharpness, refers to the distortion of the definition of objects in an image,
|
| 46 |
+
resulting in poor spatial resolution.
|
| 47 |
+
Image blur is very common in natural photos, arising from different factors such as object motion,
|
| 48 |
+
camera lens out-of-focus, and camera shake. In many cases it is undesired, when important regions
|
| 49 |
+
are affected and become less sharp; while in other cases it is often desired, when the background is
|
| 50 |
+
blurred to make the subject pop out, or motion blur is added to give the photo artistic look """)
|
| 51 |
images = ["blur1.png","bird1.jpeg","blurimg3.png","images_11.jpeg"]
|
| 52 |
with st.sidebar:
|
| 53 |
st.write("choose an image")
|
|
|
|
| 97 |
string = "The image is," + str(predicted_label) + " with the score value of " + str(round(variance_score,2))
|
| 98 |
st.subheader(string)
|
| 99 |
|
| 100 |
+
st.write("""
|
| 101 |
+
For a detailed description please look through our Documentation
|
| 102 |
+
""")
|
| 103 |
+
|
| 104 |
+
url = 'https://huggingface.co/spaces/ThirdEyeData/image_bluriness_prediction/blob/main/README.md'
|
| 105 |
+
|
| 106 |
+
st.markdown(f'''
|
| 107 |
+
<a href={url}><button style="background-color: #668F45;">Documentation</button></a>
|
| 108 |
+
''',
|
| 109 |
+
unsafe_allow_html=True)
|