Teapack1 commited on
Commit
819c345
·
1 Parent(s): 7e193fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
  import numpy as np
4
 
5
- transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-tiny.en")
6
 
7
  def transcribe(stream, new_chunk):
8
  sr, y = new_chunk
@@ -23,4 +23,5 @@ demo = gr.Interface(
23
  live=True,
24
  )
25
 
26
- demo.launch()
 
 
2
  from transformers import pipeline
3
  import numpy as np
4
 
5
+ transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
6
 
7
  def transcribe(stream, new_chunk):
8
  sr, y = new_chunk
 
23
  live=True,
24
  )
25
 
26
+ if __name__ == "__main__":
27
+ demo.launch()