works?
Browse files
app.py
CHANGED
|
@@ -22,7 +22,8 @@ generator = pipeline(
|
|
| 22 |
model=model, tokenizer=tokenizer,
|
| 23 |
task='text-generation',
|
| 24 |
max_new_tokens=50,
|
| 25 |
-
repetition_penalty=1.1
|
|
|
|
| 26 |
)
|
| 27 |
|
| 28 |
with gr.Blocks() as demo:
|
|
|
|
| 22 |
model=model, tokenizer=tokenizer,
|
| 23 |
task='text-generation',
|
| 24 |
max_new_tokens=50,
|
| 25 |
+
repetition_penalty=1.1,
|
| 26 |
+
return_full_text=False
|
| 27 |
)
|
| 28 |
|
| 29 |
with gr.Blocks() as demo:
|