reab5555 commited on
Commit
46b944e
·
verified ·
1 Parent(s): e77657a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -113,6 +113,7 @@ with gr.Blocks() as iface:
113
  speaker_outputs.append(speaker_column)
114
  execution_info = gr.Textbox(label="Execution Information", visible=False)
115
 
 
116
  analyze_button.click(
117
  fn=analyze_video,
118
  inputs=[video_input],
@@ -120,7 +121,7 @@ with gr.Blocks() as iface:
120
  show_progress=True
121
  ).then(
122
  fn=update_output,
123
- inputs=[gr.State(analyze_video)],
124
  outputs=[transcript_output] + speaker_outputs + [execution_info],
125
  )
126
 
@@ -135,7 +136,7 @@ with gr.Blocks() as iface:
135
  show_progress=True
136
  ).then(
137
  fn=update_output,
138
- inputs=[gr.State(analyze_video)],
139
  outputs=[transcript_output] + speaker_outputs + [execution_info],
140
  )
141
 
 
113
  speaker_outputs.append(speaker_column)
114
  execution_info = gr.Textbox(label="Execution Information", visible=False)
115
 
116
+
117
  analyze_button.click(
118
  fn=analyze_video,
119
  inputs=[video_input],
 
121
  show_progress=True
122
  ).then(
123
  fn=update_output,
124
+ inputs=[gr.State()], # We'll pass the output of analyze_video to this function
125
  outputs=[transcript_output] + speaker_outputs + [execution_info],
126
  )
127
 
 
136
  show_progress=True
137
  ).then(
138
  fn=update_output,
139
+ inputs=[gr.State()], # We'll pass the output of analyze_video to this function
140
  outputs=[transcript_output] + speaker_outputs + [execution_info],
141
  )
142