SelmaNajih001 commited on
Commit
6e7148c
·
verified ·
1 Parent(s): f54d432

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -18,10 +18,11 @@ pipe = pipeline(
18
  "text-generation",
19
  model=model_name,
20
  tokenizer=model_name,
21
- max_new_tokens=400,
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