Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,5 @@ 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 |
-
|
30 |
-
opencv_image=cv2.imread("soccer.jpg")
|
31 |
-
color_coverted = cv2.cvtColor(opencv_image, cv2.COLOR_BGR2RGB)
|
32 |
-
inputs=Image.fromarray(color_coverted)
|
33 |
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 |
gr.Interface(yolo, inputs, outputs, title=title, description=description, article=article, examples=examples, theme="huggingface").launch(debug=True)
|