ysharma HF staff commited on
Commit
9d10166
1 Parent(s): b65bd00
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import os
2
  os.system("pip install git+https://github.com/openai/whisper.git")
 
3
  import gradio as gr
4
  import whisper
5
 
@@ -57,6 +58,7 @@ def driver_fun(audio) :
57
  translation, lang = whisper_stt(audio) # older : transcribe, translation, lang
58
  #text1 = model.transcribe(audio)["text"]
59
 
 
60
  #For now only taking in English text for Bloom prompting as inference model is not high spec
61
  #text_generated = lang_model_response(transcribe, lang)
62
  #text_generated_en = lang_model_response(translation, 'en')
 
1
  import os
2
  os.system("pip install git+https://github.com/openai/whisper.git")
3
+ os.system("pip install neon-tts-plugin-coqui==0.6.0")
4
  import gradio as gr
5
  import whisper
6
 
 
58
  translation, lang = whisper_stt(audio) # older : transcribe, translation, lang
59
  #text1 = model.transcribe(audio)["text"]
60
 
61
+ if translation
62
  #For now only taking in English text for Bloom prompting as inference model is not high spec
63
  #text_generated = lang_model_response(transcribe, lang)
64
  #text_generated_en = lang_model_response(translation, 'en')