Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -452,13 +452,26 @@ with gr.Blocks(title="Backend-Focused LLaMA/Mistral CRUD Assistant", theme=gr.th
|
|
| 452 |
temperature = gr.Slider(0.0, 2.0, value=0.25, step=0.05, label="Temperature")
|
| 453 |
top_p = gr.Slider(0.1, 1.0, value=0.9, step=0.05, label="Top-p")
|
| 454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 455 |
with gr.Column(scale=3):
|
| 456 |
chatbot = gr.Chatbot(label="Assistant", height=500, type="messages")
|
|
|
|
|
|
|
| 457 |
with gr.Row():
|
| 458 |
-
user_box = gr.Textbox(
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 462 |
|
| 463 |
# Wire callbacks — updated outputs so visibility changes flow correctly
|
| 464 |
refresh_btn.click(
|
|
|
|
| 452 |
temperature = gr.Slider(0.0, 2.0, value=0.25, step=0.05, label="Temperature")
|
| 453 |
top_p = gr.Slider(0.1, 1.0, value=0.9, step=0.05, label="Top-p")
|
| 454 |
|
| 455 |
+
# with gr.Column(scale=3):
|
| 456 |
+
# chatbot = gr.Chatbot(label="Assistant", height=500, type="messages")
|
| 457 |
+
# with gr.Row():
|
| 458 |
+
# user_box = gr.Textbox(placeholder="Describe your CRUD/backend task…", lines=3, scale=5)
|
| 459 |
+
# with gr.Row():
|
| 460 |
+
# send_btn = gr.Button("Send ▶️", variant="primary")
|
| 461 |
+
# regen_btn = gr.Button("Regenerate 🔁", variant="secondary")
|
| 462 |
with gr.Column(scale=3):
|
| 463 |
chatbot = gr.Chatbot(label="Assistant", height=500, type="messages")
|
| 464 |
+
|
| 465 |
+
# --- Single row for textbox + buttons ---
|
| 466 |
with gr.Row():
|
| 467 |
+
user_box = gr.Textbox(
|
| 468 |
+
placeholder="Describe your CRUD/backend task…",
|
| 469 |
+
lines=3,
|
| 470 |
+
scale=5
|
| 471 |
+
)
|
| 472 |
+
send_btn = gr.Button("Send ▶️", variant="primary", scale=1)
|
| 473 |
+
regen_btn = gr.Button("Regenerate 🔁", variant="secondary", scale=1)
|
| 474 |
+
|
| 475 |
|
| 476 |
# Wire callbacks — updated outputs so visibility changes flow correctly
|
| 477 |
refresh_btn.click(
|