Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ with block:
|
|
39 |
)
|
40 |
|
41 |
with gr.Row():
|
42 |
-
submit = gr.Button(
|
43 |
|
44 |
gr.Examples(
|
45 |
examples=[
|
@@ -48,11 +48,8 @@ with block:
|
|
48 |
"I am looking for some resources",
|
49 |
],
|
50 |
inputs=message,
|
51 |
-
)
|
52 |
|
53 |
-
|
54 |
-
|
55 |
|
56 |
-
# submit.click(chat, inputs=[message], outputs=[chatbot])
|
57 |
-
|
58 |
block.launch(debug=True)
|
|
|
39 |
)
|
40 |
|
41 |
with gr.Row():
|
42 |
+
submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
|
43 |
|
44 |
gr.Examples(
|
45 |
examples=[
|
|
|
48 |
"I am looking for some resources",
|
49 |
],
|
50 |
inputs=message,
|
51 |
+
)
|
52 |
|
53 |
+
submit.on_click(get_response, inputs=[message], outputs=[chatbot])
|
|
|
54 |
|
|
|
|
|
55 |
block.launch(debug=True)
|