Update app.py
Browse files
app.py
CHANGED
|
@@ -18,10 +18,11 @@ pipe = pipeline(
|
|
| 18 |
"text-generation",
|
| 19 |
model=model_name,
|
| 20 |
tokenizer=model_name,
|
| 21 |
-
max_new_tokens=
|
| 22 |
temperature=0.5,
|
| 23 |
num_beams=6,
|
| 24 |
-
repetition_penalty=1.5
|
|
|
|
| 25 |
)
|
| 26 |
|
| 27 |
# Prompt template
|
|
|
|
| 18 |
"text-generation",
|
| 19 |
model=model_name,
|
| 20 |
tokenizer=model_name,
|
| 21 |
+
max_new_tokens=250,
|
| 22 |
temperature=0.5,
|
| 23 |
num_beams=6,
|
| 24 |
+
repetition_penalty=1.5,
|
| 25 |
+
return_full_text=False
|
| 26 |
)
|
| 27 |
|
| 28 |
# Prompt template
|