oza75 commited on
Commit
e0f2f07
1 Parent(s): 1d280b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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