lvwerra HF staff commited on
Commit
9ded88b
1 Parent(s): b1f91f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ client = Client(
26
  )
27
 
28
 
29
- def generate(prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0, do_save=True):
30
 
31
  temperature = float(temperature)
32
  if temperature < 1e-2:
@@ -129,7 +129,7 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
129
  info="Penalize repeated tokens",
130
  )
131
 
132
- submit.click(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty, do_save], outputs=[output])
133
  instruction.submit(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty], outputs=[output])
134
 
135
  demo.queue(concurrency_count=16).launch(debug=True)
 
26
  )
27
 
28
 
29
+ def generate(prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0):
30
 
31
  temperature = float(temperature)
32
  if temperature < 1e-2:
 
129
  info="Penalize repeated tokens",
130
  )
131
 
132
+ submit.click(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty], outputs=[output])
133
  instruction.submit(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty], outputs=[output])
134
 
135
  demo.queue(concurrency_count=16).launch(debug=True)