Michael Bernovskiy commited on
Commit
ec4b04f
1 Parent(s): c582f6b

reranker button added

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,14 +98,14 @@ with gr.Blocks() as demo:
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], [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], [chatbot, prompt_html])
109
 
110
  # Turn it back on
111
  txt_msg.then(lambda: gr.Textbox(interactive=True), None, [txt], queue=False)
 
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, 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], 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)