fix: Gradio 5 compat - app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,10 @@
|
|
| 1 |
"""
|
| 2 |
-
app.py — HuggingFace Space entry point
|
| 3 |
|
| 4 |
-
Serves
|
| 5 |
-
1.
|
| 6 |
-
2.
|
| 7 |
-
|
| 8 |
-
OpenEnv runtime discovers the env via openenv.yaml (entry: server/env.py)
|
| 9 |
-
and wraps it with MCP. This Gradio UI is the human-facing demo layer.
|
| 10 |
"""
|
| 11 |
|
| 12 |
import json
|
|
@@ -163,7 +161,6 @@ THEME = gr.themes.Soft(
|
|
| 163 |
primary_hue="indigo",
|
| 164 |
secondary_hue="blue",
|
| 165 |
neutral_hue="slate",
|
| 166 |
-
font=gr.themes.GoogleFont("Inter"),
|
| 167 |
)
|
| 168 |
|
| 169 |
with gr.Blocks(theme=THEME, title="Cross-Session Continuity Env") as demo:
|
|
|
|
| 1 |
"""
|
| 2 |
+
app.py — HuggingFace Space entry point (Gradio 5 compatible)
|
| 3 |
|
| 4 |
+
Serves a Gradio demo with three tabs:
|
| 5 |
+
1. Live Episode — deterministic 2-session run, no GPU needed
|
| 6 |
+
2. Training Results — gallery of 5 evaluation plots
|
| 7 |
+
3. Environment Info — architecture + reward table
|
|
|
|
|
|
|
| 8 |
"""
|
| 9 |
|
| 10 |
import json
|
|
|
|
| 161 |
primary_hue="indigo",
|
| 162 |
secondary_hue="blue",
|
| 163 |
neutral_hue="slate",
|
|
|
|
| 164 |
)
|
| 165 |
|
| 166 |
with gr.Blocks(theme=THEME, title="Cross-Session Continuity Env") as demo:
|