Skip to content

Commit

Permalink
UnboundLocalError: local variable 'button' referenced before assignme…
Browse files Browse the repository at this point in the history
…nt (#126)

Co-authored-by: Aki <[email protected]>
  • Loading branch information
akjava and Aki authored Mar 6, 2025
1 parent 006332a commit a0b46f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/fastrtc/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ def _generate_default_ui(
"""
)
with gr.Row():
if additional_input_components:
with gr.Column():
with gr.Column():
if additional_input_components:
for component in additional_input_components:
component.render()
button = gr.Button("Start Stream", variant="primary")
button = gr.Button("Start Stream", variant="primary")
with gr.Column():
output_video = WebRTC(
label="Video Stream",
Expand Down

0 comments on commit a0b46f4

Please sign in to comment.