Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,9 @@ chat = ChatWrapper()"""
|
|
22 |
|
23 |
chatbot = gr.Chatbot()
|
24 |
|
|
|
|
|
|
|
25 |
block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
|
26 |
|
27 |
with block:
|
@@ -40,7 +43,7 @@ with block:
|
|
40 |
|
41 |
with gr.Row():
|
42 |
submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
|
43 |
-
submit.
|
44 |
|
45 |
gr.Examples(
|
46 |
examples=[
|
|
|
22 |
|
23 |
chatbot = gr.Chatbot()
|
24 |
|
25 |
+
def on_button_click():
|
26 |
+
get_response(message)
|
27 |
+
|
28 |
block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
|
29 |
|
30 |
with block:
|
|
|
43 |
|
44 |
with gr.Row():
|
45 |
submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
|
46 |
+
submit.on_click(on_button_click)
|
47 |
|
48 |
gr.Examples(
|
49 |
examples=[
|