Spaces:
Sleeping
Sleeping
Ubuntu
commited on
Commit
•
893eb12
1
Parent(s):
fc24fec
update embeding
Browse files
app.py
CHANGED
@@ -159,9 +159,7 @@ def check_password(password):
|
|
159 |
def run_speech_translation(audio, source_lang, target_lang, youtube_url):
|
160 |
transcription, translated_text, audio_url = transcribe_and_speak(audio, source_lang, target_lang, youtube_url)
|
161 |
|
162 |
-
|
163 |
-
|
164 |
-
return transcription, translated_text, audio_url, embedded_video
|
165 |
|
166 |
with gr.Blocks() as demo:
|
167 |
gr.Markdown("# Speech Translation")
|
@@ -203,7 +201,7 @@ with gr.Blocks() as demo:
|
|
203 |
user_button.click(
|
204 |
fn=run_speech_translation,
|
205 |
inputs=[user_audio_input, user_source_lang, user_target_lang, user_youtube_url],
|
206 |
-
outputs=[user_transcription_output, user_translation_output, user_audio_output
|
207 |
)
|
208 |
|
209 |
def update_video_embed(youtube_url):
|
|
|
159 |
def run_speech_translation(audio, source_lang, target_lang, youtube_url):
|
160 |
transcription, translated_text, audio_url = transcribe_and_speak(audio, source_lang, target_lang, youtube_url)
|
161 |
|
162 |
+
return transcription, translated_text, audio_url
|
|
|
|
|
163 |
|
164 |
with gr.Blocks() as demo:
|
165 |
gr.Markdown("# Speech Translation")
|
|
|
201 |
user_button.click(
|
202 |
fn=run_speech_translation,
|
203 |
inputs=[user_audio_input, user_source_lang, user_target_lang, user_youtube_url],
|
204 |
+
outputs=[user_transcription_output, user_translation_output, user_audio_output]
|
205 |
)
|
206 |
|
207 |
def update_video_embed(youtube_url):
|