Sa-m commited on
Commit
b2c85db
·
1 Parent(s): 41548e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -156,7 +156,8 @@ inp = gr.Image(type="pil")
156
  output = gr.Image(type="pil")
157
  #gr.outputs.Image(type="filepath", label="Output")
158
  #.outputs.Textbox() ,api_mode=True
159
- css = ".output-image, .input-image {height: 40rem !important; width: 20rem !important;}"
 
160
  examples=[["Examples/Image1.jpg","Image1"],["Examples/Image2.jpg","Image2"],["Examples/Image29.jpg","Image3"]]
161
 
162
  io=gr.Interface(fn=Custom_detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7',examples=examples,cache_examples=False,css=css)
 
156
  output = gr.Image(type="pil")
157
  #gr.outputs.Image(type="filepath", label="Output")
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/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)