lampongyuen commited on
Commit
8d7f3aa
·
1 Parent(s): 0ae1231

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -41,9 +41,10 @@ def translate(text, src_lang, tgt_lang):
41
 
42
  def transcribe(audio):
43
  # text_audio = p(audio)["text"]
44
- text_for_audio = whisper_model.transcribe(audio)
45
- text_from_whisper = text_for_audio["text"]
46
- text=translate(text_from_whisper,"eng_Latn","zho_Hans")
 
47
  return text
48
 
49
  gr.Interface(
 
41
 
42
  def transcribe(audio):
43
  # text_audio = p(audio)["text"]
44
+ # text_for_audio = whisper_model.transcribe(audio)
45
+ # text_from_whisper = text_for_audio["text"]
46
+ # text=translate(text_from_whisper,"eng_Latn","zho_Hans")
47
+ text="abc"
48
  return text
49
 
50
  gr.Interface(