Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -102,12 +102,7 @@ def prediction(path_image):
|
|
102 |
|
103 |
|
104 |
return fig
|
105 |
-
|
106 |
-
EXAMPLES = ["img1.jpg","img2.jpg","img3.jpg","img4.jpg"]
|
107 |
-
DESCRIPTION = """An image is occluded if the image is blocked by any object.
|
108 |
-
For example if an electric pole is filled with bushes,the image is occluded since it is not clear and blocked.
|
109 |
-
Mobil-net is used to train a model with occluded and non occluded images, so that it can correctly classify the images.
|
110 |
-
Occlusion detection can be used to filter unclear images and take safety measures."""
|
111 |
|
112 |
|
113 |
image_path = inputs
|
@@ -136,7 +131,12 @@ def prediction(path_image):
|
|
136 |
print("total time : ",round((total_time_end-total_time_start),2))
|
137 |
st.write(str(simplejson.dumps(response)))
|
138 |
|
139 |
-
|
|
|
|
|
|
|
|
|
|
|
140 |
|
141 |
demo_app = gr.Interface(
|
142 |
fn= prediction,
|
|
|
102 |
|
103 |
|
104 |
return fig
|
105 |
+
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
|
108 |
image_path = inputs
|
|
|
131 |
print("total time : ",round((total_time_end-total_time_start),2))
|
132 |
st.write(str(simplejson.dumps(response)))
|
133 |
|
134 |
+
inputs = gr.inputs.Image(type = 'filepath')
|
135 |
+
EXAMPLES = ["img1.jpg","img2.jpg","img3.jpg","img4.jpg"]
|
136 |
+
DESCRIPTION = """An image is occluded if the image is blocked by any object.
|
137 |
+
For example if an electric pole is filled with bushes,the image is occluded since it is not clear and blocked.
|
138 |
+
Mobil-net is used to train a model with occluded and non occluded images, so that it can correctly classify the images.
|
139 |
+
Occlusion detection can be used to filter unclear images and take safety measures."""
|
140 |
|
141 |
demo_app = gr.Interface(
|
142 |
fn= prediction,
|