Sakayo16 commited on
Commit
6f14d6a
·
verified ·
1 Parent(s): 02011f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 0)
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):