Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ language_choices = ["English", "Polish", "Hindi", "Arabic"]
|
|
| 40 |
def clear_all():
|
| 41 |
global meeting_texts
|
| 42 |
meeting_texts = [] # Reset meeting texts
|
| 43 |
-
return [None] * (n_participants *
|
| 44 |
|
| 45 |
|
| 46 |
def wait_for_dubbing_completion(dubbing_id: str) -> bool:
|
|
@@ -277,7 +277,7 @@ def create_gradio_interface(n_participants, language_choices):
|
|
| 277 |
gr.Button(f"Generate Minutes of meeting").click(summarize, None, minutes)
|
| 278 |
|
| 279 |
# Clear button to reset inputs and outputs
|
| 280 |
-
clear_button.click(clear_all, None, [*transcript_outputs, *translated_texts, *dubbed_videos, minutes])
|
| 281 |
|
| 282 |
# Launch with .queue() to keep it running properly in Jupyter
|
| 283 |
demo.queue().launch(debug=True, share=True)
|
|
|
|
| 40 |
def clear_all():
|
| 41 |
global meeting_texts
|
| 42 |
meeting_texts = [] # Reset meeting texts
|
| 43 |
+
return [None] * (n_participants * 4 + 1) # Reset outputs of transcripts, translated texts, and dubbed videos
|
| 44 |
|
| 45 |
|
| 46 |
def wait_for_dubbing_completion(dubbing_id: str) -> bool:
|
|
|
|
| 277 |
gr.Button(f"Generate Minutes of meeting").click(summarize, None, minutes)
|
| 278 |
|
| 279 |
# Clear button to reset inputs and outputs
|
| 280 |
+
clear_button.click(clear_all, None, [*video_inputs, *transcript_outputs, *translated_texts, *dubbed_videos, minutes])
|
| 281 |
|
| 282 |
# Launch with .queue() to keep it running properly in Jupyter
|
| 283 |
demo.queue().launch(debug=True, share=True)
|