Hecheng0625
commited on
Commit
β’
b0ba2e0
1
Parent(s):
8d25678
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ import langid
|
|
24 |
|
25 |
processor = SeamlessM4TFeatureExtractor.from_pretrained("facebook/w2v-bert-2.0")
|
26 |
|
27 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "
|
28 |
|
29 |
whisper_model = whisper.load_model("turbo")
|
30 |
|
|
|
24 |
|
25 |
processor = SeamlessM4TFeatureExtractor.from_pretrained("facebook/w2v-bert-2.0")
|
26 |
|
27 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
28 |
|
29 |
whisper_model = whisper.load_model("turbo")
|
30 |
|