Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ from tts import BambaraTTS
|
|
18 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
19 |
|
20 |
# Translation pipeline
|
21 |
-
|
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
|
|
|
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
|