Sa-m commited on
Commit
928a0ed
1 Parent(s): ae9e3f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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
- #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/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,css=css)
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