manan05 commited on
Commit
2939849
1 Parent(s): a6b1f94
Files changed (1) hide show
  1. app.py +2 -1
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: