broadfield-dev commited on
Commit
79d9fa8
Β·
verified Β·
1 Parent(s): 92bb235

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- 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:
 
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: