Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,9 @@ from tts import BambaraTTS
|
|
17 |
# Check if CUDA is available
|
18 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
19 |
|
20 |
-
# Translation pipeline
|
21 |
-
translation_model = "oza75/nllb-600M-mt-french-bambara"
|
|
|
22 |
translator = pipeline("translation", model=translation_model, max_length=512)
|
23 |
|
24 |
# Text-to-Speech pipeline
|
|
|
17 |
# Check if CUDA is available
|
18 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
19 |
|
20 |
+
# Translation pipeline
|
21 |
+
# translation_model = "oza75/nllb-600M-mt-french-bambara"
|
22 |
+
translation_model = "oza75/nllb-1.3B-mt-french-bambara"
|
23 |
translator = pipeline("translation", model=translation_model, max_length=512)
|
24 |
|
25 |
# Text-to-Speech pipeline
|