gokaygokay
commited on
Commit
•
c16a5b4
1
Parent(s):
ca1953f
Update README.md
Browse files
README.md
CHANGED
@@ -23,7 +23,10 @@ tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
|
|
23 |
# Model
|
24 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_checkpoint)
|
25 |
|
26 |
-
enhancer = pipeline('text2text-generation',
|
|
|
|
|
|
|
27 |
max_target_length = 256
|
28 |
prefix = "enhance prompt: "
|
29 |
|
|
|
23 |
# Model
|
24 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_checkpoint)
|
25 |
|
26 |
+
enhancer = pipeline('text2text-generation',
|
27 |
+
model=model,
|
28 |
+
tokenizer=tokenizer,
|
29 |
+
device=device)
|
30 |
max_target_length = 256
|
31 |
prefix = "enhance prompt: "
|
32 |
|