Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
7 |
|
8 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
9 |
|
10 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
11 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("
|
12 |
model = model.to(device)
|
13 |
|
14 |
input_text = 'Translate from english to german: How old are you'
|
|
|
7 |
|
8 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
9 |
|
10 |
+
tokenizer = AutoTokenizer.from_pretrained("towing/viachat-t5-large-v3.0")
|
11 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("towing/viachat-t5-large-v3.0")
|
12 |
model = model.to(device)
|
13 |
|
14 |
input_text = 'Translate from english to german: How old are you'
|