Update app.py
Browse files
app.py
CHANGED
|
@@ -254,6 +254,8 @@ def create_gradio_interface(n_participants, language_choices):
|
|
| 254 |
translated_texts = []
|
| 255 |
dubbed_videos = []
|
| 256 |
|
|
|
|
|
|
|
| 257 |
# Create a row for each participant
|
| 258 |
for i in range(n_participants):
|
| 259 |
video_input, language_dropdown, transcript_output, translated_text, dubbed_video = create_participant_row(i, language_choices)
|
|
@@ -274,7 +276,7 @@ def create_gradio_interface(n_participants, language_choices):
|
|
| 274 |
gr.Button(f"Generate Minutes of meeting").click(summarize, None, minutes)
|
| 275 |
|
| 276 |
# Clear button to reset inputs and outputs
|
| 277 |
-
clear_button
|
| 278 |
|
| 279 |
# Launch with .queue() to keep it running properly in Jupyter
|
| 280 |
demo.queue().launch(debug=True, share=True)
|
|
|
|
| 254 |
translated_texts = []
|
| 255 |
dubbed_videos = []
|
| 256 |
|
| 257 |
+
clear_button = gr.Button("Clear All")
|
| 258 |
+
|
| 259 |
# Create a row for each participant
|
| 260 |
for i in range(n_participants):
|
| 261 |
video_input, language_dropdown, transcript_output, translated_text, dubbed_video = create_participant_row(i, language_choices)
|
|
|
|
| 276 |
gr.Button(f"Generate Minutes of meeting").click(summarize, None, minutes)
|
| 277 |
|
| 278 |
# Clear button to reset inputs and outputs
|
| 279 |
+
clear_button.click(clear_all, None, [*transcript_outputs, *translated_texts, *dubbed_videos, minutes])
|
| 280 |
|
| 281 |
# Launch with .queue() to keep it running properly in Jupyter
|
| 282 |
demo.queue().launch(debug=True, share=True)
|