Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,10 @@ chat = ChatWrapper()"""
|
|
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 |
|
@@ -42,8 +44,8 @@ with block:
|
|
42 |
)
|
43 |
|
44 |
with gr.Row():
|
45 |
-
submit = gr.Button("Send")
|
46 |
-
submit.click(on_button_click)
|
47 |
|
48 |
gr.Examples(
|
49 |
examples=[
|
|
|
22 |
|
23 |
chatbot = gr.Chatbot()
|
24 |
|
25 |
+
def on_button_click(inp):
|
26 |
+
# get_response(message)
|
27 |
+
print(f"You entered: {inp}")
|
28 |
+
|
29 |
|
30 |
block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
|
31 |
|
|
|
44 |
)
|
45 |
|
46 |
with gr.Row():
|
47 |
+
submit = gr.Button(color="lightblue", value="Send", variant="secondary").style(full_width=False)
|
48 |
+
submit.click(on_button_click, [message])
|
49 |
|
50 |
gr.Examples(
|
51 |
examples=[
|