Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
8 |
-
model_id ="./"
|
9 |
-
|
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
|