ale979 commited on
Commit
cce09ce
·
verified ·
1 Parent(s): 1787470

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -140,9 +140,9 @@ with gr.Blocks() as demo:
140
 
141
  chatbot = gr.Chatbot()
142
  msg = gr.Textbox(label = "Enter your question here")
143
- msg.submit(answer_query,[msg,chatbot],[msg,chatbot]).then(track_user_interaction, inputs=[msg, gr.Textbox("promptChatGPT", visible=False)]).then(track_user_interaction, inputs=[chatbot, gr.Textbox("ChatGPTreply", visible=False)])
144
  submitChat = gr.Button("Submit message")
145
- submitChat.click(answer_query,[msg,chatbot],[msg,chatbot]).then(track_user_interaction, inputs=[msg, gr.Textbox("promptChatGPT", visible=False)]).then(track_user_interaction, inputs=[chatbot, gr.Textbox("ChatGPTreply", visible=False)])
146
 
147
 
148
  if __name__ == "__main__":
 
140
 
141
  chatbot = gr.Chatbot()
142
  msg = gr.Textbox(label = "Enter your question here")
143
+ msg.submit(answer_query,[msg,chatbot],[msg,chatbot]).then(track_user_interaction, inputs=[msg, gr.Textbox("promptChatGPT", visible=False)])
144
  submitChat = gr.Button("Submit message")
145
+ submitChat.click(answer_query,[msg,chatbot],[msg,chatbot]).then(track_user_interaction, inputs=[msg, gr.Textbox("promptChatGPT", visible=False)])
146
 
147
 
148
  if __name__ == "__main__":