marcelbinz commited on
Commit
b916df8
·
verified ·
1 Parent(s): 26380ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ pipe = pipeline(
12
 
13
  @spaces.GPU
14
  def infer(prompt):
15
- return pipe(prompt, max_new_tokens=1, do_sample=True, temperature=1.0)[0]["generated_text"]
16
 
17
  with gr.Blocks(fill_width=True, css="""
18
  #prompt-box textarea {height:200px}
 
12
 
13
  @spaces.GPU
14
  def infer(prompt):
15
+ return pipe(prompt, max_new_tokens=1, do_sample=True, temperature=1.0, return_full_text=False)[0]["generated_text"]
16
 
17
  with gr.Blocks(fill_width=True, css="""
18
  #prompt-box textarea {height:200px}