amirgame197 commited on
Commit
18fb827
·
verified ·
1 Parent(s): 0878eec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -136,8 +136,8 @@ with gr.Blocks() as app:
136
  client_choice.change(load_models, client_choice, [chat_b])
137
  app.load(load_models, client_choice, [chat_b])
138
 
139
- chat_sub = inp.submit(check_rand, [rand, seed], seed).then(chat_wrapper, [sys_inp, inp, chat_b, memory, client_choice, seed, temp, tokens, top_p, rep_p, chat_mem, custom_prompt, translate_to_persian_checkbox]).then(display=chat_b, state=memory)
140
- go = btn.click(check_rand, [rand, seed], seed).then(chat_wrapper, [sys_inp, inp, chat_b, memory, client_choice, seed, temp, tokens, top_p, rep_p, chat_mem, custom_prompt, translate_to_persian_checkbox]).then(display=chat_b, state=memory)
141
 
142
  clear_btn.click(clear_fn, None, [inp, sys_inp, chat_b, memory])
143
  app.queue(default_concurrency_limit=10).launch()
 
136
  client_choice.change(load_models, client_choice, [chat_b])
137
  app.load(load_models, client_choice, [chat_b])
138
 
139
+ chat_sub = inp.submit(check_rand, [rand, seed], seed).then(chat_wrapper, [sys_inp, inp, chat_b, memory, client_choice, seed, temp, tokens, top_p, rep_p, chat_mem, custom_prompt, translate_to_persian_checkbox]).then(chat_b.display, memory)
140
+ go = btn.click(check_rand, [rand, seed], seed).then(chat_wrapper, [sys_inp, inp, chat_b, memory, client_choice, seed, temp, tokens, top_p, rep_p, chat_mem, custom_prompt, translate_to_persian_checkbox]).then(chat_b.display, memory)
141
 
142
  clear_btn.click(clear_fn, None, [inp, sys_inp, chat_b, memory])
143
  app.queue(default_concurrency_limit=10).launch()