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