Hecheng0625
commited on
Commit
β’
84137be
1
Parent(s):
4cc2fd4
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,7 @@ from transformers import SeamlessM4TFeatureExtractor
|
|
19 |
|
20 |
processor = SeamlessM4TFeatureExtractor.from_pretrained("facebook/w2v-bert-2.0")
|
21 |
|
22 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "
|
23 |
-
|
24 |
|
25 |
|
26 |
def g2p_(text, language):
|
|
|
19 |
|
20 |
processor = SeamlessM4TFeatureExtractor.from_pretrained("facebook/w2v-bert-2.0")
|
21 |
|
22 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
23 |
|
24 |
|
25 |
def g2p_(text, language):
|