matthoffner commited on
Commit
e8b2dd0
Β·
1 Parent(s): 6437190

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -53,7 +53,8 @@ with gr.Blocks(css="") as demo:
53
  chat_input = gr.Textbox(show_label=False, placeholder="Enter text...").style(container=False)
54
  with gr.Column(min_width=50, scale=1):
55
  chat_submit_btn = gr.Button("πŸš€", variant="primary")
56
-
 
57
  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])
58
  chat_input.submit(reset_textbox, [], [chat_input])
59
  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])
 
53
  chat_input = gr.Textbox(show_label=False, placeholder="Enter text...").style(container=False)
54
  with gr.Column(min_width=50, scale=1):
55
  chat_submit_btn = gr.Button("πŸš€", variant="primary")
56
+
57
+ index_select = []
58
  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])
59
  chat_input.submit(reset_textbox, [], [chat_input])
60
  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])