Michael Bernovskiy commited on
Commit
c6f7507
1 Parent(s): 3d634b4

reranker button added

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -97,15 +97,15 @@ with gr.Blocks() as demo:
97
 
98
  prompt_html = gr.HTML()
99
  # Turn off interactivity while generating if you click
100
- txt_msg = txt_btn.click(add_text, [chatbot, txt], [chatbot, txt], [chatbot, txt], queue=False).then(
101
- bot, [chatbot, use_reranker], [chatbot, api_kind], [chatbot, prompt_html])
102
 
103
  # Turn it back on
104
  txt_msg.then(lambda: gr.Textbox(interactive=True), None, [txt], queue=False)
105
 
106
  # Turn off interactivity while generating if you hit enter
107
- txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], [chatbot, txt], queue=False).then(
108
- bot, [chatbot, use_reranker], [chatbot, api_kind], [chatbot, prompt_html])
109
 
110
  # Turn it back on
111
  txt_msg.then(lambda: gr.Textbox(interactive=True), None, [txt], queue=False)
 
97
 
98
  prompt_html = gr.HTML()
99
  # Turn off interactivity while generating if you click
100
+ txt_msg = txt_btn.click(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
101
+ bot, [chatbot, api_kind, use_reranker], [chatbot, prompt_html])
102
 
103
  # Turn it back on
104
  txt_msg.then(lambda: gr.Textbox(interactive=True), None, [txt], queue=False)
105
 
106
  # Turn off interactivity while generating if you hit enter
107
+ txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
108
+ bot, [chatbot, api_kind, use_reranker], [chatbot, prompt_html])
109
 
110
  # Turn it back on
111
  txt_msg.then(lambda: gr.Textbox(interactive=True), None, [txt], queue=False)