Spaces:
Runtime error
Runtime error
shamik
commited on
Commit
•
b2e0549
1
Parent(s):
4db0df0
updated app.py.
Browse files
app.py
CHANGED
@@ -17,8 +17,6 @@ from lang_list import (
|
|
17 |
processor = AutoProcessor.from_pretrained("facebook/seamless-m4t-v2-large")
|
18 |
model = SeamlessM4Tv2Model.from_pretrained("facebook/seamless-m4t-v2-large")
|
19 |
|
20 |
-
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
21 |
-
|
22 |
AUDIO_SAMPLE_RATE = 16000.0
|
23 |
MAX_INPUT_AUDIO_LENGTH = 60 # in seconds
|
24 |
DEFAULT_TARGET_LANGUAGE = "French"
|
|
|
17 |
processor = AutoProcessor.from_pretrained("facebook/seamless-m4t-v2-large")
|
18 |
model = SeamlessM4Tv2Model.from_pretrained("facebook/seamless-m4t-v2-large")
|
19 |
|
|
|
|
|
20 |
AUDIO_SAMPLE_RATE = 16000.0
|
21 |
MAX_INPUT_AUDIO_LENGTH = 60 # in seconds
|
22 |
DEFAULT_TARGET_LANGUAGE = "French"
|