Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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
|
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()
|