Spaces:
Runtime error
Runtime error
fixed variable name
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import VitsModel, VitsTokenizer, pipeline
|
|
9 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
10 |
|
11 |
# load speech translation checkpoint
|
12 |
-
|
13 |
|
14 |
# load text-to-speech checkpoint for MMS
|
15 |
model = VitsModel.from_pretrained("Matthijs/mms-tts-fra")
|
|
|
9 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
10 |
|
11 |
# load speech translation checkpoint
|
12 |
+
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base", device=device)
|
13 |
|
14 |
# load text-to-speech checkpoint for MMS
|
15 |
model = VitsModel.from_pretrained("Matthijs/mms-tts-fra")
|