Update app.py
Browse files
app.py
CHANGED
@@ -26,5 +26,6 @@ examples = [['soccer.jpg'], ['bus.jpg']]
|
|
26 |
while True:
|
27 |
#inputs=gr.inputs.Image(type="pil",source="webcam")
|
28 |
outputs = gr.outputs.Image(type="pil", label="Output Image")
|
29 |
-
ret, inputs = cam.read()
|
|
|
30 |
gr.Interface(yolo, inputs, outputs, title=title, description=description, article=article, examples=examples, theme="huggingface").launch(debug=True)
|
|
|
26 |
while True:
|
27 |
#inputs=gr.inputs.Image(type="pil",source="webcam")
|
28 |
outputs = gr.outputs.Image(type="pil", label="Output Image")
|
29 |
+
#ret, inputs = cam.read()
|
30 |
+
inputs=Image.open('soccer.jpg')
|
31 |
gr.Interface(yolo, inputs, outputs, title=title, description=description, article=article, examples=examples, theme="huggingface").launch(debug=True)
|