Xilixmeaty40 commited on
Commit
3d4cc49
·
verified ·
1 Parent(s): ffe4c63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -126,8 +126,7 @@ with gr.Blocks() as app:
126
  header = gr.Checkbox(label="Include header?", value=True)
127
  rand.change(check_rand, inputs=[rand, seed], outputs=seed)
128
  btn.click(chat_inf, inputs=[sys_inp, inp, chat_b, memory, client_choice, seed, temp, tokens, top_p, rep_p, chat_mem, custom_prompt], outputs=[chat_b, memory])
129
- stop_btn.click(lambda: None, [], chat_b.stop)
130
- clear_btn.click(clear_fn, [], [inp, sys_inp, chat_b, memory])
131
- im_btn.click(get_screenshot, inputs=[chat_b, im_height, im_width, chatblock, theme, wait_time, header], outputs=img)
132
 
133
  app.launch()
 
126
  header = gr.Checkbox(label="Include header?", value=True)
127
  rand.change(check_rand, inputs=[rand, seed], outputs=seed)
128
  btn.click(chat_inf, inputs=[sys_inp, inp, chat_b, memory, client_choice, seed, temp, tokens, top_p, rep_p, chat_mem, custom_prompt], outputs=[chat_b, memory])
129
+ stop_btn.click(lambda: None, [])
130
+ clear_btn.click(clear_fn, [])
 
131
 
132
  app.launch()