Update goai_helpers/goai_traduction.py
Browse files
goai_helpers/goai_traduction.py
CHANGED
|
@@ -12,7 +12,7 @@ login(token=auth_token)
|
|
| 12 |
|
| 13 |
|
| 14 |
@spaces.GPU
|
| 15 |
-
def
|
| 16 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 17 |
|
| 18 |
if src_lang == "fra_Latn" and tgt_lang == "mos_Latn":
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
@spaces.GPU
|
| 15 |
+
def goai_traduction(text, src_lang, tgt_lang):
|
| 16 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 17 |
|
| 18 |
if src_lang == "fra_Latn" and tgt_lang == "mos_Latn":
|