broadfield-dev commited on
Commit
8543532
Β·
verified Β·
1 Parent(s): 91346a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -555,7 +555,7 @@ with gr.Blocks(theme=custom_theme, css=custom_css, title="AI Research Mega Agent
555
  def_model_disp = get_default_model_display_name_for_provider(def_prov) if def_prov else None
556
 
557
  # Moved status bar below the main title for better flow
558
- with gr.Row(elem_classes="status-bar-group"): # Use elem_classes for easier targeting
559
  with gr.Column(scale=3): agent_stat_tb = gr.Textbox(label="Agent Status", interactive=False, lines=1, value="Initializing systems...")
560
  with gr.Column(scale=1): memory_backend_info_tb = gr.Textbox(label="Memory Backend", value=f"{MEMORY_STORAGE_BACKEND}", interactive=False)
561
  if MEMORY_STORAGE_BACKEND == "SQLITE":
@@ -565,7 +565,7 @@ with gr.Blocks(theme=custom_theme, css=custom_css, title="AI Research Mega Agent
565
 
566
  with gr.Tabs() as main_tabs:
567
  with gr.TabItem("βš™οΈ Agent Configuration & πŸ’¬ Chat", id=0): # Combined Config and Chat
568
- with gr.Row(equal_height=False): # Allow columns to size independently
569
  with gr.Column(scale=1, min_width=380): # Sidebar for config
570
  gr.Markdown("## βš™οΈ LLM Configuration")
571
  with gr.Group(): # Removed elem_classes="compact-group" unless specifically needed for sub-styling
@@ -591,7 +591,7 @@ with gr.Blocks(theme=custom_theme, css=custom_css, title="AI Research Mega Agent
591
  gr.Markdown("## Manage Stored Knowledge") # Top level header for the tab
592
  with gr.Row(equal_height=False):
593
  with gr.Column(scale=1):
594
- with gr.Box(): # Using Box for a slightly more contained look
595
  gr.Markdown("### πŸ“œ Rules (Learned Insights)")
596
  rules_disp_ta = gr.TextArea(label="View/Edit Rules", lines=15, interactive=True, placeholder="Load or type rules here (one per line or '---' separated for multiple).")
597
  with gr.Row():
@@ -603,7 +603,7 @@ with gr.Blocks(theme=custom_theme, css=custom_css, title="AI Research Mega Agent
603
  save_faiss_ram_btn_kb = gr.Button("Save FAISS Indices", visible=(MEMORY_STORAGE_BACKEND == "RAM"))
604
 
605
  with gr.Column(scale=1):
606
- with gr.Box():
607
  gr.Markdown("### πŸ“š Memories (Past Interactions)")
608
  mems_disp_json = gr.JSON(label="View Memories (JSON format)", scale=2)
609
  with gr.Row(): view_mems_btn = gr.Button("πŸ”„ Load/Refresh Memories View")
 
555
  def_model_disp = get_default_model_display_name_for_provider(def_prov) if def_prov else None
556
 
557
  # Moved status bar below the main title for better flow
558
+ with gr.Group(elem_classes="status-bar-group"): # Use elem_classes for easier targeting
559
  with gr.Column(scale=3): agent_stat_tb = gr.Textbox(label="Agent Status", interactive=False, lines=1, value="Initializing systems...")
560
  with gr.Column(scale=1): memory_backend_info_tb = gr.Textbox(label="Memory Backend", value=f"{MEMORY_STORAGE_BACKEND}", interactive=False)
561
  if MEMORY_STORAGE_BACKEND == "SQLITE":
 
565
 
566
  with gr.Tabs() as main_tabs:
567
  with gr.TabItem("βš™οΈ Agent Configuration & πŸ’¬ Chat", id=0): # Combined Config and Chat
568
+ with gr.Group(equal_height=False): # Allow columns to size independently
569
  with gr.Column(scale=1, min_width=380): # Sidebar for config
570
  gr.Markdown("## βš™οΈ LLM Configuration")
571
  with gr.Group(): # Removed elem_classes="compact-group" unless specifically needed for sub-styling
 
591
  gr.Markdown("## Manage Stored Knowledge") # Top level header for the tab
592
  with gr.Row(equal_height=False):
593
  with gr.Column(scale=1):
594
+ with gr.Group(): # Using Box for a slightly more contained look
595
  gr.Markdown("### πŸ“œ Rules (Learned Insights)")
596
  rules_disp_ta = gr.TextArea(label="View/Edit Rules", lines=15, interactive=True, placeholder="Load or type rules here (one per line or '---' separated for multiple).")
597
  with gr.Row():
 
603
  save_faiss_ram_btn_kb = gr.Button("Save FAISS Indices", visible=(MEMORY_STORAGE_BACKEND == "RAM"))
604
 
605
  with gr.Column(scale=1):
606
+ with gr.Group():
607
  gr.Markdown("### πŸ“š Memories (Past Interactions)")
608
  mems_disp_json = gr.JSON(label="View Memories (JSON format)", scale=2)
609
  with gr.Row(): view_mems_btn = gr.Button("πŸ”„ Load/Refresh Memories View")