Spaces:
Sleeping
Sleeping
Update src/Translate.py
Browse files- src/Translate.py +2 -1
src/Translate.py
CHANGED
|
@@ -2,7 +2,8 @@ import nltk
|
|
| 2 |
from nltk.tokenize import sent_tokenize
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForCausalLM, pipeline
|
| 4 |
import torch
|
| 5 |
-
import
|
|
|
|
| 6 |
|
| 7 |
METHOD = "TRANSLATE"
|
| 8 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 2 |
from nltk.tokenize import sent_tokenize
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForCausalLM, pipeline
|
| 4 |
import torch
|
| 5 |
+
import exception.Exception as ExceptionCustom
|
| 6 |
+
import polars as pl
|
| 7 |
|
| 8 |
METHOD = "TRANSLATE"
|
| 9 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|