Sa-m commited on
Commit
03ee7bd
·
1 Parent(s): 7d18171

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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