mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
UnboundLocalError: local variable 'button' referenced before assignment (#126)
Co-authored-by: Aki <akxucker@gmail.com>
This commit is contained in:
@@ -193,11 +193,11 @@ class Stream(WebRTCConnectionMixin):
|
|||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
if additional_input_components:
|
with gr.Column():
|
||||||
with gr.Column():
|
if additional_input_components:
|
||||||
for component in additional_input_components:
|
for component in additional_input_components:
|
||||||
component.render()
|
component.render()
|
||||||
button = gr.Button("Start Stream", variant="primary")
|
button = gr.Button("Start Stream", variant="primary")
|
||||||
with gr.Column():
|
with gr.Column():
|
||||||
output_video = WebRTC(
|
output_video = WebRTC(
|
||||||
label="Video Stream",
|
label="Video Stream",
|
||||||
|
|||||||
Reference in New Issue
Block a user