Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -220,7 +220,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
220 |
with gr.Column(scale=3):
|
221 |
# Chat window + user input
|
222 |
chatbot = gr.Chatbot(
|
223 |
-
height=
|
224 |
bubble_full_width=True, # Allow bubbles to use full width
|
225 |
show_copy_button=True,
|
226 |
avatar_images=(None, "🧙"),
|
@@ -287,13 +287,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
287 |
# 4) Connect each starter button:
|
288 |
for starter_button in starter_buttons:
|
289 |
starter_button.click(
|
290 |
-
fn=
|
291 |
-
inputs=[starter_button, chatbot, genre, full_memory],
|
292 |
-
outputs=[msg],
|
293 |
-
queue=False
|
294 |
-
).then(
|
295 |
-
fn=respond,
|
296 |
-
inputs=[msg, chatbot, genre, full_memory],
|
297 |
outputs=[chatbot],
|
298 |
queue=False
|
299 |
)
|
|
|
220 |
with gr.Column(scale=3):
|
221 |
# Chat window + user input
|
222 |
chatbot = gr.Chatbot(
|
223 |
+
height=500, # Increased height
|
224 |
bubble_full_width=True, # Allow bubbles to use full width
|
225 |
show_copy_button=True,
|
226 |
avatar_images=(None, "🧙"),
|
|
|
287 |
# 4) Connect each starter button:
|
288 |
for starter_button in starter_buttons:
|
289 |
starter_button.click(
|
290 |
+
fn=respond, # Call respond directly
|
291 |
+
inputs=[starter_button, chatbot, genre, full_memory], # Use button text as message
|
|
|
|
|
|
|
|
|
|
|
292 |
outputs=[chatbot],
|
293 |
queue=False
|
294 |
)
|