Update app.py
Browse files
app.py
CHANGED
@@ -147,18 +147,16 @@ interface_image = gr.Interface(
|
|
147 |
)
|
148 |
|
149 |
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
gr.
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
|
159 |
gr.TabbedInterface(
|
160 |
-
[
|
161 |
-
tab_names=[
|
162 |
).queue().launch()
|
163 |
|
164 |
|
|
|
147 |
)
|
148 |
|
149 |
|
150 |
+
interface_webcam = gr.Interface(
|
151 |
+
fn=show_preds_webcam,
|
152 |
+
live=True,
|
153 |
+
inputs=gr.Image(source=["webcam"], streaming=True, type="pil"),
|
154 |
+
outputs=outputs_video,
|
155 |
+
)
|
|
|
|
|
156 |
|
157 |
gr.TabbedInterface(
|
158 |
+
[ interface_webcam, interface_image],
|
159 |
+
tab_names=[ 'Webcam', "Image"]
|
160 |
).queue().launch()
|
161 |
|
162 |
|