Spaces:
Build error
Build error
Update app.py
Browse files
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)])
|
| 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__":
|
|
|
|
| 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__":
|