ysharma HF staff commited on
Commit
3753259
1 Parent(s): 2719319
Files changed (1) hide show
  1. app.py +2 -14
app.py CHANGED
@@ -11,7 +11,7 @@ from neon_tts_plugin_coqui import CoquiTTS
11
  # Whisper: Speech-to-text
12
  model = whisper.load_model("base")
13
  model_med = whisper.load_model("medium")
14
- # Languages covered in Whisper - (exhaustive list) :
15
  #"en": "english", "zh": "chinese", "de": "german", "es": "spanish", "ru": "russian",
16
  #"ko": "korean", "fr": "french", "ja": "japanese", "pt": "portuguese", "tr": "turkish",
17
  #"pl": "polish", "ca": "catalan", "nl": "dutch", "ar": "arabic", "sv": "swedish",
@@ -178,16 +178,4 @@ with demo:
178
 
179
  b1.click(driver_fun,inputs=[in_audio], outputs=[out_transcript, out_translation_en, out_generated_text,out_generated_text_en, out_audio])
180
 
181
- demo.launch(enable_queue=True, debug=True)
182
-
183
- #gr.Interface(
184
- # title = 'Testing Whisper',
185
- # fn=driver_fun,
186
- # inputs=[
187
- # gr.Audio(source="microphone", type="filepath"), #streaming = True,
188
- # # "state"
189
- # ],
190
- # outputs=[
191
- # "textbox", "textbox", "textbox", "textbox", "audio",
192
- # ],
193
- # live=True).launch()
 
11
  # Whisper: Speech-to-text
12
  model = whisper.load_model("base")
13
  model_med = whisper.load_model("medium")
14
+ # Languages covered in Whisper - (exhaustive list) :
15
  #"en": "english", "zh": "chinese", "de": "german", "es": "spanish", "ru": "russian",
16
  #"ko": "korean", "fr": "french", "ja": "japanese", "pt": "portuguese", "tr": "turkish",
17
  #"pl": "polish", "ca": "catalan", "nl": "dutch", "ar": "arabic", "sv": "swedish",
 
178
 
179
  b1.click(driver_fun,inputs=[in_audio], outputs=[out_transcript, out_translation_en, out_generated_text,out_generated_text_en, out_audio])
180
 
181
+ demo.launch(enable_queue=True, debug=True)