Update app.py
Browse files
app.py
CHANGED
|
@@ -57,8 +57,8 @@ with gr.Blocks() as demo:
|
|
| 57 |
|
| 58 |
# First add user's message to the conversation history
|
| 59 |
# Then get reply from the tutor and add that to the conversation history
|
| 60 |
-
|
| 61 |
-
fn =
|
| 62 |
inputs = [user_chat_input, study_tutor],
|
| 63 |
outputs = [user_chat_input, chatbot, study_tutor],
|
| 64 |
queue=False
|
|
|
|
| 57 |
|
| 58 |
# First add user's message to the conversation history
|
| 59 |
# Then get reply from the tutor and add that to the conversation history
|
| 60 |
+
user_chat_submit.click(
|
| 61 |
+
fn = add_user_message,
|
| 62 |
inputs = [user_chat_input, study_tutor],
|
| 63 |
outputs = [user_chat_input, chatbot, study_tutor],
|
| 64 |
queue=False
|