Update app.py
Browse files
app.py
CHANGED
@@ -14,12 +14,13 @@ def gradio_wrapper(img):
|
|
14 |
return results.render()[0]
|
15 |
|
16 |
# Set up the Gradio image input component with the option to upload an image or use the webcam
|
17 |
-
image = gr.inputs.Image(source=
|
|
|
18 |
|
19 |
# Create the Gradio interface with the gradio_wrapper function, the image input component, and an image output component
|
20 |
demo = gr.Interface(
|
21 |
gradio_wrapper,
|
22 |
-
image,
|
23 |
'image',
|
24 |
live=True,
|
25 |
title="CiclopeIA",
|
|
|
14 |
return results.render()[0]
|
15 |
|
16 |
# Set up the Gradio image input component with the option to upload an image or use the webcam
|
17 |
+
image = gr.inputs.Image(source="upload")
|
18 |
+
image_ = gr.inputs.Image(source="webcam")
|
19 |
|
20 |
# Create the Gradio interface with the gradio_wrapper function, the image input component, and an image output component
|
21 |
demo = gr.Interface(
|
22 |
gradio_wrapper,
|
23 |
+
[image, image_],
|
24 |
'image',
|
25 |
live=True,
|
26 |
title="CiclopeIA",
|