Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -157,9 +157,9 @@ inp = gr.Image(type="pil")
|
|
157 |
output = gr.Image(type="pil")
|
158 |
#gr.outputs.Image(type="filepath", label="Output")
|
159 |
#.outputs.Textbox() ,api_mode=True
|
160 |
-
|
161 |
examples=[["Examples/Image1.jpg","Image1"],["Examples/Image2.jpg","Image2"],["Examples/Image29.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 |
|
|
|
157 |
output = gr.Image(type="pil")
|
158 |
#gr.outputs.Image(type="filepath", label="Output")
|
159 |
#.outputs.Textbox() ,api_mode=True
|
160 |
+
css = ".output-image, .input-image {height: 40rem !important; width: 40% !important;}"
|
161 |
examples=[["Examples/Image1.jpg","Image1"],["Examples/Image2.jpg","Image2"],["Examples/Image29.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,css=css)
|
164 |
io.launch()
|
165 |
|