abdulsamad commited on
Commit
5e777e2
·
verified ·
1 Parent(s): 8c527ad

Update app.py

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