Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,12 @@ def transcribe_audio(audio,language):
|
|
12 |
transcribed = pipe(audio)["text"]
|
13 |
result = "Transcribed text\n"
|
14 |
result += transcribed + "\n"
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
#text_to_speech(trans_text,language)
|
19 |
#result += text_to_speech
|
20 |
-
return
|
21 |
|
22 |
|
23 |
def translate_audio(text,language):
|
|
|
12 |
transcribed = pipe(audio)["text"]
|
13 |
result = "Transcribed text\n"
|
14 |
result += transcribed + "\n"
|
15 |
+
result += "Translated text\n"
|
16 |
+
trans_text = translate_audio(transcribed,language)
|
17 |
+
result += trans_text
|
18 |
#text_to_speech(trans_text,language)
|
19 |
#result += text_to_speech
|
20 |
+
return result
|
21 |
|
22 |
|
23 |
def translate_audio(text,language):
|