Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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(
|
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 |
|