Update run.py
Browse files
run.py
CHANGED
@@ -66,8 +66,8 @@ with gr.Blocks(css=css) as demo:
|
|
66 |
with gr.Column(elem_classes=["my-column"]):
|
67 |
with gr.Group(elem_classes=["my-group"]):
|
68 |
image = WebRTC(label="Stream")
|
69 |
-
|
70 |
-
|
71 |
|
72 |
if __name__ == "__main__":
|
73 |
demo.launch()
|
|
|
66 |
with gr.Column(elem_classes=["my-column"]):
|
67 |
with gr.Group(elem_classes=["my-group"]):
|
68 |
image = WebRTC(label="Stream")
|
69 |
+
|
70 |
+
image.stream(fn=segment, inputs=[image], outputs=[image])
|
71 |
|
72 |
if __name__ == "__main__":
|
73 |
demo.launch()
|