runaksh commited on
Commit
b28847e
·
1 Parent(s): 95adb28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -3,6 +3,8 @@ os.system("pip install git+https://github.com/openai/whisper.git")
3
  import gradio
4
  import whisper
5
 
 
 
6
  def transcribe_audio(audio):
7
  # Load the audio and trim/pad it to fit for 30 seconds
8
  audio = whisper.load_audio(audio)
 
3
  import gradio
4
  import whisper
5
 
6
+ model = whisper.load_model("base")
7
+
8
  def transcribe_audio(audio):
9
  # Load the audio and trim/pad it to fit for 30 seconds
10
  audio = whisper.load_audio(audio)