Chad commited on
Commit ·
6162c5a
1
Parent(s): 41bd0c6
nwfbwfbwdwddwwdwddwdwdwdefefdwe
Browse files
app.py
CHANGED
|
@@ -73,10 +73,11 @@ with gr.Blocks() as interface:
|
|
| 73 |
]
|
| 74 |
|
| 75 |
send_button.click(
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
|
|
|
| 80 |
|
| 81 |
reset_button = gr.Button("New Conversation")
|
| 82 |
reset_button.click(lambda: [], outputs=[state])
|
|
|
|
| 73 |
]
|
| 74 |
|
| 75 |
send_button.click(
|
| 76 |
+
fn=generate_reply,
|
| 77 |
+
inputs=[user_input, state],
|
| 78 |
+
outputs=[chatbot, state, user_input]
|
| 79 |
+
)
|
| 80 |
+
|
| 81 |
|
| 82 |
reset_button = gr.Button("New Conversation")
|
| 83 |
reset_button.click(lambda: [], outputs=[state])
|