Update app.py
Browse files
app.py
CHANGED
|
@@ -156,7 +156,7 @@ def summarize(meeting_texts=meeting_texts):
|
|
| 156 |
# Placeholder function for speech to text conversion
|
| 157 |
def speech_to_text(video):
|
| 158 |
print('Started transcribing')
|
| 159 |
-
audio = AudioSegment.from_file(video
|
| 160 |
audio.export('temp.mp3', format="mp3")
|
| 161 |
transcript= transcriber.transcribe('temp.mp3')['text']
|
| 162 |
print('transcript:', transcript)
|
|
@@ -229,7 +229,7 @@ def create_participant_row(i, language_choices):
|
|
| 229 |
# Main dynamic Gradio interface
|
| 230 |
def create_gradio_interface(n_participants, language_choices):
|
| 231 |
with gr.Blocks() as demo:
|
| 232 |
-
gr.Markdown("# Multilingual Conference Call Simulation")
|
| 233 |
|
| 234 |
video_inputs = []
|
| 235 |
language_dropdowns = []
|
|
|
|
| 156 |
# Placeholder function for speech to text conversion
|
| 157 |
def speech_to_text(video):
|
| 158 |
print('Started transcribing')
|
| 159 |
+
audio = AudioSegment.from_file(video)
|
| 160 |
audio.export('temp.mp3', format="mp3")
|
| 161 |
transcript= transcriber.transcribe('temp.mp3')['text']
|
| 162 |
print('transcript:', transcript)
|
|
|
|
| 229 |
# Main dynamic Gradio interface
|
| 230 |
def create_gradio_interface(n_participants, language_choices):
|
| 231 |
with gr.Blocks() as demo:
|
| 232 |
+
gr.Markdown("# LinguaPolis: Bridging Languages, Uniting Teams Globally - Multilingual Conference Call Simulation")
|
| 233 |
|
| 234 |
video_inputs = []
|
| 235 |
language_dropdowns = []
|