broadfield-dev commited on
Commit
37f47c5
·
verified ·
1 Parent(s): 1dc2bc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -431,7 +431,10 @@ body { background: linear-gradient(to bottom right, #2c3e50, #34495e); color: #e
431
  """
432
 
433
  with gr.Blocks(title="AI Research Agent v5.8") as demo:
434
- # Removed gr.HTML("<style>" + custom_css + "</style>") as css is passed to gr.Blocks
 
 
 
435
  with gr.Sidebar(): # Using Gradio's explicit Sidebar component
436
  gr.Markdown("## ⚙️ Configuration")
437
  with gr.Group():
@@ -449,10 +452,7 @@ with gr.Blocks(title="AI Research Agent v5.8") as demo:
449
  gr.Markdown("# 🤖 AI Research Agent")
450
  # Removed subtitle from here, can be added in description of Space if hosted on HF
451
 
452
- avail_provs = get_available_providers()
453
- def_prov = avail_provs[0] if avail_provs else None
454
- def_models = get_model_display_names_for_provider(def_prov) if def_prov else []
455
- def_model_disp = get_default_model_display_name_for_provider(def_prov) if def_prov else None
456
 
457
  with gr.Row(elem_classes="status-bar"):
458
  with gr.Column(scale=3): agent_stat_tb = gr.Textbox(label="Agent Status", interactive=False, lines=1, value="Initializing systems...")
 
431
  """
432
 
433
  with gr.Blocks(title="AI Research Agent v5.8") as demo:
434
+ avail_provs = get_available_providers()
435
+ def_prov = avail_provs[0] if avail_provs else None
436
+ def_models = get_model_display_names_for_provider(def_prov) if def_prov else []
437
+ def_model_disp = get_default_model_display_name_for_provider(def_prov) if def_prov else None
438
  with gr.Sidebar(): # Using Gradio's explicit Sidebar component
439
  gr.Markdown("## ⚙️ Configuration")
440
  with gr.Group():
 
452
  gr.Markdown("# 🤖 AI Research Agent")
453
  # Removed subtitle from here, can be added in description of Space if hosted on HF
454
 
455
+
 
 
 
456
 
457
  with gr.Row(elem_classes="status-bar"):
458
  with gr.Column(scale=3): agent_stat_tb = gr.Textbox(label="Agent Status", interactive=False, lines=1, value="Initializing systems...")