Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -154,12 +154,9 @@ def Custom_detect(img):
|
|
154 |
return Image.fromarray(im0[:,:,::-1])
|
155 |
inp = gr.Image(type="pil")
|
156 |
output = gr.Image(type="pil")
|
157 |
-
|
158 |
-
#.outputs.Textbox() ,api_mode=True
|
159 |
-
#css = ".output-image, .input-image {height: 40rem !important; width: 20rem !important;}"
|
160 |
-
css = ".image-preview {height: auto !important;}"
|
161 |
examples=[["Examples/Image1.jpg","Image1"],["Examples/Image2.jpg","Image2"],["Examples/Image7.jpg","Image3"]]
|
162 |
|
163 |
-
io=gr.Interface(fn=Custom_detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7',examples=examples,cache_examples=False
|
164 |
io.launch()
|
165 |
|
|
|
154 |
return Image.fromarray(im0[:,:,::-1])
|
155 |
inp = gr.Image(type="pil")
|
156 |
output = gr.Image(type="pil")
|
157 |
+
|
|
|
|
|
|
|
158 |
examples=[["Examples/Image1.jpg","Image1"],["Examples/Image2.jpg","Image2"],["Examples/Image7.jpg","Image3"]]
|
159 |
|
160 |
+
io=gr.Interface(fn=Custom_detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7',examples=examples,cache_examples=False)
|
161 |
io.launch()
|
162 |
|