fix: resolve Gradio 6.x LinePlot TypeError and constructor warnings
Browse files- server/app.py +1 -5
server/app.py
CHANGED
|
@@ -199,9 +199,7 @@ def build_custom_ui():
|
|
| 199 |
return pd.DataFrame(), f"### Execution Error\n{str(e)}", 0, 0, "ERROR", "### ERROR", pd.DataFrame(), f"Traceback:\n{traceback.format_exc()}", "{}"
|
| 200 |
|
| 201 |
with gr.Blocks(
|
| 202 |
-
title="PolicyEvolver Judge Console",
|
| 203 |
-
theme=gr.themes.Default(primary_hue="blue"),
|
| 204 |
-
css=".progress-badge { display: none !important; }"
|
| 205 |
) as demo:
|
| 206 |
gr.HTML("<h1 style='text-align: center; color: #2D5A27;'>PolicyEvolver: Judge's Strategic Console</h1>")
|
| 207 |
gr.Markdown("Welcome, Judge Agent. Use this console to identify data-to-policy gaps and propose measurable governance refinements.")
|
|
@@ -220,8 +218,6 @@ def build_custom_ui():
|
|
| 220 |
x="Step",
|
| 221 |
y="Reward",
|
| 222 |
tooltip=["Step", "Reward"],
|
| 223 |
-
width=300,
|
| 224 |
-
height=200,
|
| 225 |
)
|
| 226 |
|
| 227 |
reward_outcome_disp = gr.Markdown("### Awaiting Scenario...")
|
|
|
|
| 199 |
return pd.DataFrame(), f"### Execution Error\n{str(e)}", 0, 0, "ERROR", "### ERROR", pd.DataFrame(), f"Traceback:\n{traceback.format_exc()}", "{}"
|
| 200 |
|
| 201 |
with gr.Blocks(
|
| 202 |
+
title="PolicyEvolver Judge Console",
|
|
|
|
|
|
|
| 203 |
) as demo:
|
| 204 |
gr.HTML("<h1 style='text-align: center; color: #2D5A27;'>PolicyEvolver: Judge's Strategic Console</h1>")
|
| 205 |
gr.Markdown("Welcome, Judge Agent. Use this console to identify data-to-policy gaps and propose measurable governance refinements.")
|
|
|
|
| 218 |
x="Step",
|
| 219 |
y="Reward",
|
| 220 |
tooltip=["Step", "Reward"],
|
|
|
|
|
|
|
| 221 |
)
|
| 222 |
|
| 223 |
reward_outcome_disp = gr.Markdown("### Awaiting Scenario...")
|