Njap-png commited on
Commit 路
f5880b5
1
Parent(s): 3f1c7c4
Make HUD dashboard full-page and first
Browse files
app.py
CHANGED
|
@@ -956,6 +956,15 @@ with gr.Blocks(title="Agron Neural Interface") as demo:
|
|
| 956 |
gr.HTML(PARTICLE_HTML, js_on_load=PARTICLE_JS)
|
| 957 |
gr.Markdown("<h1 class='agron-title'>AGR脴N NEURAL INTERFACE</h1>", elem_classes="agron-card")
|
| 958 |
gr.Markdown("<div class='agron-sub'>Self-improving multi-agent core 路 particles = live network 路 learning from every exchange</div>")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 959 |
with gr.Row():
|
| 960 |
with gr.Column(scale=4, elem_classes="agron-card"):
|
| 961 |
gr.Markdown("<h2 class='agron-title'>馃挰 COMMAND CONSOLE</h2>")
|
|
@@ -987,16 +996,6 @@ with gr.Blocks(title="Agron Neural Interface") as demo:
|
|
| 987 |
stop_evolve_btn = gr.Button("Stop")
|
| 988 |
update_btn = gr.Button("Self-update")
|
| 989 |
|
| 990 |
-
# Embedded sci-fi dashboard (served via data URL)
|
| 991 |
-
try:
|
| 992 |
-
import base64 as _b64
|
| 993 |
-
_dash_html = open(os.path.join(ROOT, "agron_dashboard.html")).read()
|
| 994 |
-
_dash_b64 = _b64.b64encode(_dash_html.encode()).decode()
|
| 995 |
-
with gr.Accordion("AGR脴N Dashboard HUD", open=True):
|
| 996 |
-
gr.HTML(f'<iframe src="data:text/html;base64,{_dash_b64}" style="width:100%;height:80vh;border:0;border-radius:12px;" sandbox="allow-scripts allow-same-origin allow-forms"></iframe>')
|
| 997 |
-
except Exception as e:
|
| 998 |
-
gr.Markdown(f"Dashboard not available: {e}")
|
| 999 |
-
|
| 1000 |
def respond(message, history):
|
| 1001 |
if not message.strip():
|
| 1002 |
return history, ""
|
|
|
|
| 956 |
gr.HTML(PARTICLE_HTML, js_on_load=PARTICLE_JS)
|
| 957 |
gr.Markdown("<h1 class='agron-title'>AGR脴N NEURAL INTERFACE</h1>", elem_classes="agron-card")
|
| 958 |
gr.Markdown("<div class='agron-sub'>Self-improving multi-agent core 路 particles = live network 路 learning from every exchange</div>")
|
| 959 |
+
# Full-page AGR脴N HUD dashboard
|
| 960 |
+
try:
|
| 961 |
+
import base64 as _b64
|
| 962 |
+
_dash_html = open(os.path.join(ROOT, "agron_dashboard.html")).read()
|
| 963 |
+
_dash_b64 = _b64.b64encode(_dash_html.encode()).decode()
|
| 964 |
+
gr.HTML(f'<iframe src="data:text/html;base64,{_dash_b64}" style="width:100%;height:92vh;border:1px solid rgba(34,211,238,0.35);border-radius:12px;" sandbox="allow-scripts allow-same-origin allow-forms"></iframe>')
|
| 965 |
+
except Exception as e:
|
| 966 |
+
gr.Markdown(f"Dashboard not available: {e}")
|
| 967 |
+
|
| 968 |
with gr.Row():
|
| 969 |
with gr.Column(scale=4, elem_classes="agron-card"):
|
| 970 |
gr.Markdown("<h2 class='agron-title'>馃挰 COMMAND CONSOLE</h2>")
|
|
|
|
| 996 |
stop_evolve_btn = gr.Button("Stop")
|
| 997 |
update_btn = gr.Button("Self-update")
|
| 998 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 999 |
def respond(message, history):
|
| 1000 |
if not message.strip():
|
| 1001 |
return history, ""
|