Sa-m commited on
Commit
876d201
·
1 Parent(s): 7279597

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -156,10 +156,10 @@ inp = gr.Image(type="pil")
156
  #output=gr.outputs.Image(type="pil", label="Output Image")
157
  output = gr.Image(type="pil")
158
  #gr.outputs.Image(type="filepath", label="Output")
159
- #.outputs.Textbox()
160
 
161
  examples=[["Examples/img-300_jpg.rf.6b7b035dff1cda092ce3dc22be8d0135.jpg",'Image1']]
162
 
163
- io=gr.Interface(fn=Custom_detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7 ', examples=examples,api_mode=True)
164
- io.launch()
165
 
 
156
  #output=gr.outputs.Image(type="pil", label="Output Image")
157
  output = gr.Image(type="pil")
158
  #gr.outputs.Image(type="filepath", label="Output")
159
+ #.outputs.Textbox() ,api_mode=True
160
 
161
  examples=[["Examples/img-300_jpg.rf.6b7b035dff1cda092ce3dc22be8d0135.jpg",'Image1']]
162
 
163
+ io=gr.Interface(fn=Custom_detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7 ', examples=examples)
164
+ io.load()
165