Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ with gr.Blocks() as demo:
|
|
| 55 |
user_chat_input = gr.Textbox(label="User input", scale=9)
|
| 56 |
user_chat_submit = gr.Button("Ask/answer model", scale=1)
|
| 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_input.submit(
|
| 61 |
fn = add_user_message,
|
|
|
|
| 55 |
user_chat_input = gr.Textbox(label="User input", scale=9)
|
| 56 |
user_chat_submit = gr.Button("Ask/answer model", scale=1)
|
| 57 |
|
| 58 |
+
# First add user's message to the conversation history when user presses "enter" or hits the submit button
|
| 59 |
# Then get reply from the tutor and add that to the conversation history
|
| 60 |
user_chat_input.submit(
|
| 61 |
fn = add_user_message,
|