Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import gradio as gr
|
|
| 5 |
model_id = "Sakayo16/whisper-small-yo" # Use the correct format for the model identifier
|
| 6 |
|
| 7 |
# Initialize the pipeline with the correct model identifier and task
|
| 8 |
-
pipe = pipeline(task="automatic-speech-recognition", model=model_id, device =
|
| 9 |
|
| 10 |
# Define the function to transcribe audio using the model pipeline
|
| 11 |
def transcribe(audio):
|
|
|
|
| 5 |
model_id = "Sakayo16/whisper-small-yo" # Use the correct format for the model identifier
|
| 6 |
|
| 7 |
# Initialize the pipeline with the correct model identifier and task
|
| 8 |
+
pipe = pipeline(task="automatic-speech-recognition", model=model_id, device = -1)
|
| 9 |
|
| 10 |
# Define the function to transcribe audio using the model pipeline
|
| 11 |
def transcribe(audio):
|