Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -431,13 +431,13 @@ 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 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
|
442 |
avail_provs = get_available_providers()
|
443 |
def_prov = avail_provs[0] if avail_provs else None
|
@@ -527,9 +527,9 @@ with gr.Blocks(title="AI Research Agent v5.8") as demo:
|
|
527 |
# Initial visibility for conditional Textboxes based on backend
|
528 |
vis_sqlite = MEMORY_STORAGE_BACKEND == "SQLITE"
|
529 |
vis_hf = MEMORY_STORAGE_BACKEND == "HF_DATASET"
|
530 |
-
return backend_status, rules_on_load, mems_on_load
|
531 |
|
532 |
-
demo.load(fn=app_load_fn, inputs=None, outputs=[agent_stat_tb, rules_disp_ta, mems_disp_json
|
533 |
|
534 |
if __name__ == "__main__":
|
535 |
logger.info(f"Starting Gradio AI Research Mega Agent (v5.8 - UI Style/Layout Update, Memory: {MEMORY_STORAGE_BACKEND})...")
|
|
|
431 |
"""
|
432 |
|
433 |
with gr.Blocks(title="AI Research Agent v5.8") as demo:
|
434 |
+
|
435 |
+
gr.HTML("<h1> 🤖 AI Research Agent </h1>")
|
436 |
+
with gr.Row():
|
437 |
+
with gr.Column(scale=3): agent_stat_tb = gr.Textbox(label="Agent Status", interactive=False, lines=1, value="Initializing systems...")
|
438 |
+
with gr.Column(scale=1): memory_backend_info_tb = gr.Textbox(label="Memory Backend", value=f"{MEMORY_STORAGE_BACKEND}", interactive=False)
|
439 |
+
sqlite_path_display = gr.Textbox(label="SQLite Path", value=f"{MEMORY_SQLITE_PATH}", interactive=False, scale=2) # Use visible
|
440 |
+
hf_repos_display = gr.Textbox(label="HF Repos", value=f"M: {MEMORY_HF_MEM_REPO}, R: {MEMORY_HF_RULES_REPO}", interactive=False, scale=2) # Use visible
|
441 |
|
442 |
avail_provs = get_available_providers()
|
443 |
def_prov = avail_provs[0] if avail_provs else None
|
|
|
527 |
# Initial visibility for conditional Textboxes based on backend
|
528 |
vis_sqlite = MEMORY_STORAGE_BACKEND == "SQLITE"
|
529 |
vis_hf = MEMORY_STORAGE_BACKEND == "HF_DATASET"
|
530 |
+
return backend_status, rules_on_load, mems_on_load
|
531 |
|
532 |
+
demo.load(fn=app_load_fn, inputs=None, outputs=[agent_stat_tb, rules_disp_ta, mems_disp_json])
|
533 |
|
534 |
if __name__ == "__main__":
|
535 |
logger.info(f"Starting Gradio AI Research Mega Agent (v5.8 - UI Style/Layout Update, Memory: {MEMORY_STORAGE_BACKEND})...")
|