Spaces:
Running
Running
Disable webcam mirroring
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ if __name__ == "__main__":
|
|
109 |
with gr.Tab("Object Detection", id='yolos'):
|
110 |
with gr.Row(equal_height=False):
|
111 |
with gr.Group():
|
112 |
-
yolos_input = gr.Image(label="Input Image", type="pil")
|
113 |
yolos_submit = gr.Button("Detect Objects", interactive=False)
|
114 |
with gr.Group():
|
115 |
yolos_gallery = gr.Gallery(label="Detected Objects", object_fit="scale-down", columns=3,
|
@@ -120,7 +120,7 @@ if __name__ == "__main__":
|
|
120 |
with gr.Tab("Inference", id='moondream'):
|
121 |
with gr.Row(equal_height=False):
|
122 |
with gr.Group():
|
123 |
-
moon_img = gr.Image(label="Image", type="pil", interactive=True)
|
124 |
moon_prompt = gr.Textbox(label="Question", value="What is this food item?")
|
125 |
moon_submit = gr.Button("Submit", interactive=False)
|
126 |
moon_output = gr.TextArea(label="Output", interactive=False)
|
|
|
109 |
with gr.Tab("Object Detection", id='yolos'):
|
110 |
with gr.Row(equal_height=False):
|
111 |
with gr.Group():
|
112 |
+
yolos_input = gr.Image(label="Input Image", type="pil", mirror_webcam=False)
|
113 |
yolos_submit = gr.Button("Detect Objects", interactive=False)
|
114 |
with gr.Group():
|
115 |
yolos_gallery = gr.Gallery(label="Detected Objects", object_fit="scale-down", columns=3,
|
|
|
120 |
with gr.Tab("Inference", id='moondream'):
|
121 |
with gr.Row(equal_height=False):
|
122 |
with gr.Group():
|
123 |
+
moon_img = gr.Image(label="Image", type="pil", interactive=True, mirror_webcam=False)
|
124 |
moon_prompt = gr.Textbox(label="Question", value="What is this food item?")
|
125 |
moon_submit = gr.Button("Submit", interactive=False)
|
126 |
moon_output = gr.TextArea(label="Output", interactive=False)
|