Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,16 +2,16 @@ from transformers import pipeline
|
|
2 |
import torch
|
3 |
|
4 |
|
5 |
-
translator = pipeline(task="translation",
|
6 |
-
model="./models/facebook/nllb-200-distilled-600M",
|
7 |
-
torch_dtype=torch.bfloat16)
|
8 |
-
|
9 |
-
text = """\
|
10 |
-
My puppy is adorable, \
|
11 |
-
Your kitten is cute.
|
12 |
-
Her panda is friendly.
|
13 |
-
His llama is thoughtful. \
|
14 |
-
We all have nice pets!"""
|
15 |
|
16 |
|
17 |
#text_translated = translator(text,
|
|
|
2 |
import torch
|
3 |
|
4 |
|
5 |
+
#translator = pipeline(task="translation",
|
6 |
+
# model="./models/facebook/nllb-200-distilled-600M",
|
7 |
+
# torch_dtype=torch.bfloat16) #
|
8 |
+
|
9 |
+
#text = """\
|
10 |
+
#My puppy is adorable, \
|
11 |
+
#Your kitten is cute.
|
12 |
+
#Her panda is friendly.
|
13 |
+
#His llama is thoughtful. \
|
14 |
+
#We all have nice pets!"""
|
15 |
|
16 |
|
17 |
#text_translated = translator(text,
|