akadriu commited on
Commit
033e2bc
·
verified ·
1 Parent(s): 3f652c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -4,10 +4,9 @@ import gradio as gr
4
 
5
  # Fetch the token from the environment
6
  hf_token = os.getenv("HUGGINGFACE_HUB_TOKEN")
7
- #model_id = "akadriu/whisper-medium-sq" # update with your model id
8
- model_id ="./"
9
- #pipe = pipeline("automatic-speech-recognition", model=model_id, token=hf_token)
10
- pipe = pipeline("automatic-speech-recognition", model=model_id)
11
 
12
  def transcribe_speech(filepath):
13
  # Check if the filepath is valid
 
4
 
5
  # Fetch the token from the environment
6
  hf_token = os.getenv("HUGGINGFACE_HUB_TOKEN")
7
+ model_id = "akadriu/whisper-medium-sq" # update with your model id
8
+ #model_id ="./"
9
+ pipe = pipeline("automatic-speech-recognition", model=model_id, token=hf_token)
 
10
 
11
  def transcribe_speech(filepath):
12
  # Check if the filepath is valid