Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,9 @@ model = AutoModelForSeq2SeqLM.from_pretrained(model_checkpoint)
|
|
49 |
enhancer = pipeline('text2text-generation',
|
50 |
model=model,
|
51 |
tokenizer=tokenizer,
|
52 |
-
repetition_penalty= 1.2
|
|
|
|
|
53 |
enhancer.to(device)
|
54 |
max_target_length = 256
|
55 |
|
|
|
49 |
enhancer = pipeline('text2text-generation',
|
50 |
model=model,
|
51 |
tokenizer=tokenizer,
|
52 |
+
repetition_penalty= 1.2,
|
53 |
+
device=device
|
54 |
+
)
|
55 |
enhancer.to(device)
|
56 |
max_target_length = 256
|
57 |
|