Aswini-Kumar commited on
Commit
788f2cb
·
verified ·
1 Parent(s): 6146337

fix: Gradio 5 compat - app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -1,12 +1,10 @@
1
  """
2
- app.py — HuggingFace Space entry point
3
 
4
- Serves two things on port 7860:
5
- 1. A Gradio demo tab shows a live 2-session episode side by side
6
- 2. An /api endpoint JSON API so judges can curl the env directly
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 Resultsgallery 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: