Geoeasy commited on
Commit
cbb597c
·
verified ·
1 Parent(s): 252ce9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -150,8 +150,8 @@ with gr.Blocks(title=APP_TITLE, css=custom_css, theme=gr.themes.Base()) as demo:
150
  with gr.Row(elem_id="input-area"):
151
  txt = gr.Textbox(placeholder="Digite sua pergunta…", lines=2, elem_id="user-input")
152
  btn = gr.Button("Enviar", elem_id="send-button")
153
- btn.click(chatbot, [txt, gr.Slider(0,1,0.6), gr.Slider(0,1,0.95), gr.Slider(64,2048,512)], [chatbot_ui, txt])
154
- #txt.submit(chatbot, [txt, gr.Slider(0,1,0.6), gr.Slider(0,1,0.95), gr.Slider(64,2048,512)], [chatbot_ui, txt])
155
  gr.Button("Limpar").click(clear_history, [], [chatbot_ui, txt])
156
 
157
  # sidebar: PDF & suggestions
 
150
  with gr.Row(elem_id="input-area"):
151
  txt = gr.Textbox(placeholder="Digite sua pergunta…", lines=2, elem_id="user-input")
152
  btn = gr.Button("Enviar", elem_id="send-button")
153
+ #btn.click(chatbot, [txt, gr.Slider(0,1,0.6), gr.Slider(0,1,0.95), gr.Slider(64,2048,512)], [chatbot_ui, txt])
154
+ txt.submit(chatbot, [txt, gr.Slider(0,1,0.6), gr.Slider(0,1,0.95), gr.Slider(64,2048,512)], [chatbot_ui, txt])
155
  gr.Button("Limpar").click(clear_history, [], [chatbot_ui, txt])
156
 
157
  # sidebar: PDF & suggestions