Update app.py
Browse files
app.py
CHANGED
@@ -725,13 +725,13 @@ with gr.Blocks(theme=custom_theme, css=custom_css) as demo:
|
|
725 |
model_select = gr.Dropdown(label="AI Model", choices=[])
|
726 |
system_prompt_input = gr.Textbox(label="System Prompt", lines=10, value=DEFAULT_SYSTEM_PROMPT, elem_id="system-prompt")
|
727 |
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
|
736 |
# --- NEW: Confirmation Accordion ---
|
737 |
with gr.Accordion("π Proposed Changes (Pending Confirmation)", visible=False) as confirm_accordion:
|
|
|
725 |
model_select = gr.Dropdown(label="AI Model", choices=[])
|
726 |
system_prompt_input = gr.Textbox(label="System Prompt", lines=10, value=DEFAULT_SYSTEM_PROMPT, elem_id="system-prompt")
|
727 |
|
728 |
+
with gr.Column(scale=2):
|
729 |
+
gr.Markdown("## π¬ AI Assistant Chat")
|
730 |
+
chatbot_display = gr.Chatbot(label="AI Chat", height=500, bubble_full_width=False, avatar_images=(None, "https://huggingface.co/datasets/huggingface/badges/resolve/main/huggingface-bot-avatar.svg"))
|
731 |
+
with gr.Row():
|
732 |
+
chat_message_input = gr.Textbox(show_label=False, placeholder="Your Message...", scale=7)
|
733 |
+
send_chat_button = gr.Button("Send", variant="primary", scale=1)
|
734 |
+
status_output = gr.Textbox(label="Last Action Status", interactive=False, value="Ready.")
|
735 |
|
736 |
# --- NEW: Confirmation Accordion ---
|
737 |
with gr.Accordion("π Proposed Changes (Pending Confirmation)", visible=False) as confirm_accordion:
|