Commit
•
2960239
1
Parent(s):
32664bb
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import numpy as np
|
|
3 |
import torch
|
4 |
from transformers import pipeline, VitsModel, VitsTokenizer
|
5 |
|
|
|
6 |
|
7 |
# load speech translation checkpoint
|
8 |
ASR_MODEL_NAME = 'openai/whisper-base'
|
|
|
3 |
import torch
|
4 |
from transformers import pipeline, VitsModel, VitsTokenizer
|
5 |
|
6 |
+
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
7 |
|
8 |
# load speech translation checkpoint
|
9 |
ASR_MODEL_NAME = 'openai/whisper-base'
|