freeja commited on
Commit
3f76811
1 Parent(s): 07e0344

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- #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 transcribed
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):