Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
122 |
with gr.Row():
|
123 |
for name, text in example_messages.items():
|
124 |
btn = gr.Button(name)
|
125 |
-
btn.click(fn=lambda t=text: gr.update(value=t), None, user_input)
|
126 |
|
127 |
submit_button.click(
|
128 |
fn=generate_response,
|
@@ -132,4 +132,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
132 |
|
133 |
clear_button.click(lambda: ([], []), None, [chatbot, history_state])
|
134 |
|
135 |
-
demo.launch(ssr_mode=False)
|
|
|
122 |
with gr.Row():
|
123 |
for name, text in example_messages.items():
|
124 |
btn = gr.Button(name)
|
125 |
+
btn.click(fn=lambda t=text: gr.update(value=t), inputs=None, outputs=user_input)
|
126 |
|
127 |
submit_button.click(
|
128 |
fn=generate_response,
|
|
|
132 |
|
133 |
clear_button.click(lambda: ([], []), None, [chatbot, history_state])
|
134 |
|
135 |
+
demo.launch(ssr_mode=False)
|