tsi-org commited on
Commit
8f69df8
·
verified ·
1 Parent(s): d946849

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -682,9 +682,9 @@ with gr.Blocks(title="Self-Forcing Streaming Demo") as demo:
682
 
683
  # Connect the generator to the streaming video
684
  start_btn.click(
685
- fn=lambda p, s, f: (APP_STATE.update({"current_frames": []}) or video_generation_handler_streaming(p, s, f)),
686
  inputs=[prompt, seed, fps],
687
- outputs=[streaming_video, status_display]
688
  )
689
 
690
  # Function to handle download button click
 
682
 
683
  # Connect the generator to the streaming video
684
  start_btn.click(
685
+ fn=safe_frame_generator,
686
  inputs=[prompt, seed, fps],
687
+ outputs=[streaming_video, status_display, final_video]
688
  )
689
 
690
  # Function to handle download button click