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

reranker button added

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -97,14 +97,14 @@ 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], 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
 
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