Spaces:
Paused
Paused
Commit
·
ca4ca68
1
Parent(s):
7bf4e53
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,8 @@ with gr.Blocks(css="") as demo:
|
|
57 |
index_select = []
|
58 |
prompt_tmpl = prompt_tmpl_dict["Default"]
|
59 |
refine_tmpl = refine_tmpl_dict["Default"]
|
|
|
|
|
60 |
chat_input.submit(chat_ai, [index_select, chat_input, prompt_tmpl, refine_tmpl, sim_k, chat_tone, chat_context, chatbot, search_options_checkbox], [chat_context, chatbot])
|
61 |
chat_input.submit(reset_textbox, [], [chat_input])
|
62 |
chat_submit_btn.click(chat_ai, [index_select, chat_input, prompt_tmpl, refine_tmpl, sim_k, chat_tone, chat_context, chatbot, search_options_checkbox], [chat_context, chatbot])
|
|
|
57 |
index_select = []
|
58 |
prompt_tmpl = prompt_tmpl_dict["Default"]
|
59 |
refine_tmpl = refine_tmpl_dict["Default"]
|
60 |
+
sim_k = 1
|
61 |
+
chat_tone = 0.7
|
62 |
chat_input.submit(chat_ai, [index_select, chat_input, prompt_tmpl, refine_tmpl, sim_k, chat_tone, chat_context, chatbot, search_options_checkbox], [chat_context, chatbot])
|
63 |
chat_input.submit(reset_textbox, [], [chat_input])
|
64 |
chat_submit_btn.click(chat_ai, [index_select, chat_input, prompt_tmpl, refine_tmpl, sim_k, chat_tone, chat_context, chatbot, search_options_checkbox], [chat_context, chatbot])
|