Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,8 @@ from transformers import pipeline
|
|
| 3 |
import spaces
|
| 4 |
|
| 5 |
# Load the Whisper model from Hugging Face
|
| 6 |
-
model = pipeline("automatic-speech-recognition", model="
|
|
|
|
| 7 |
|
| 8 |
# Function to process audio input and transcribe it
|
| 9 |
@spaces.GPU
|
|
|
|
| 3 |
import spaces
|
| 4 |
|
| 5 |
# Load the Whisper model from Hugging Face
|
| 6 |
+
model = pipeline("automatic-speech-recognition", model="ylacombe/whisper-large-v3-turbo", chunk_length_s=30, device=0)
|
| 7 |
+
# model = pipeline("automatic-speech-recognition", model="distil-whisper/distil-large-v3", chunk_length_s=30, device=0)
|
| 8 |
|
| 9 |
# Function to process audio input and transcribe it
|
| 10 |
@spaces.GPU
|