Spaces:
Sleeping
Sleeping
Deploy Project Epsilon Space bundle
Browse files
app.py
CHANGED
|
@@ -191,10 +191,12 @@ APP_CSS = """
|
|
| 191 |
|
| 192 |
.panel-card {
|
| 193 |
padding: 18px;
|
|
|
|
| 194 |
}
|
| 195 |
|
| 196 |
.status-card {
|
| 197 |
padding: 22px 22px 18px;
|
|
|
|
| 198 |
}
|
| 199 |
|
| 200 |
.panel-title {
|
|
@@ -297,6 +299,7 @@ APP_CSS = """
|
|
| 297 |
border: 1px solid rgba(236, 214, 188, 0.08);
|
| 298 |
border-radius: 18px;
|
| 299 |
padding: 14px;
|
|
|
|
| 300 |
}
|
| 301 |
|
| 302 |
.metric-label {
|
|
@@ -310,6 +313,40 @@ APP_CSS = """
|
|
| 310 |
.metric-value {
|
| 311 |
font-size: 1rem;
|
| 312 |
line-height: 1.25;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 313 |
}
|
| 314 |
|
| 315 |
.status-reason {
|
|
@@ -770,7 +807,7 @@ with gr.Blocks(title="Autonomous Executive Assistant Sandbox") as demo:
|
|
| 770 |
|
| 771 |
with gr.Row(equal_height=True):
|
| 772 |
with gr.Column(scale=4):
|
| 773 |
-
with gr.Group(elem_classes=["panel-card"]):
|
| 774 |
gr.HTML(
|
| 775 |
"""
|
| 776 |
<h2 class="panel-title">Control Room</h2>
|
|
@@ -787,25 +824,35 @@ with gr.Blocks(title="Autonomous Executive Assistant Sandbox") as demo:
|
|
| 787 |
],
|
| 788 |
value="easy_deadline_extraction",
|
| 789 |
label="Scenario",
|
|
|
|
| 790 |
)
|
| 791 |
provider = gr.Dropdown(
|
| 792 |
choices=["baseline", "openrouter", "rl"],
|
| 793 |
value="baseline",
|
| 794 |
label="Policy",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 795 |
)
|
| 796 |
-
max_steps = gr.Number(value=12, precision=0, label="Max Steps")
|
| 797 |
with gr.Accordion("Provider Settings", open=False):
|
| 798 |
model_name = gr.Textbox(
|
| 799 |
value="google/gemma-4-31b-it",
|
| 800 |
label="OpenRouter Model",
|
|
|
|
| 801 |
)
|
| 802 |
checkpoint_path = gr.Textbox(
|
| 803 |
value=_default_rl_checkpoint(),
|
| 804 |
label="RL Checkpoint Path",
|
|
|
|
| 805 |
)
|
| 806 |
api_key = gr.Textbox(
|
| 807 |
type="password",
|
| 808 |
label="OPENROUTER_API_KEY",
|
|
|
|
| 809 |
)
|
| 810 |
with gr.Row():
|
| 811 |
reset = gr.Button("Reset Scenario", variant="secondary")
|
|
|
|
| 191 |
|
| 192 |
.panel-card {
|
| 193 |
padding: 18px;
|
| 194 |
+
overflow: visible;
|
| 195 |
}
|
| 196 |
|
| 197 |
.status-card {
|
| 198 |
padding: 22px 22px 18px;
|
| 199 |
+
overflow: hidden;
|
| 200 |
}
|
| 201 |
|
| 202 |
.panel-title {
|
|
|
|
| 299 |
border: 1px solid rgba(236, 214, 188, 0.08);
|
| 300 |
border-radius: 18px;
|
| 301 |
padding: 14px;
|
| 302 |
+
min-width: 0;
|
| 303 |
}
|
| 304 |
|
| 305 |
.metric-label {
|
|
|
|
| 313 |
.metric-value {
|
| 314 |
font-size: 1rem;
|
| 315 |
line-height: 1.25;
|
| 316 |
+
overflow-wrap: anywhere;
|
| 317 |
+
word-break: break-word;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
.control-room,
|
| 321 |
+
.control-room .gr-form,
|
| 322 |
+
.control-room .gr-group,
|
| 323 |
+
.control-room .gr-box,
|
| 324 |
+
.control-room .gr-accordion {
|
| 325 |
+
overflow: visible !important;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
.control-room .gr-accordion {
|
| 329 |
+
position: relative;
|
| 330 |
+
z-index: 4;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
.control-room [data-testid="dropdown"],
|
| 334 |
+
.control-room [data-testid="number"],
|
| 335 |
+
.control-room [data-testid="textbox"] {
|
| 336 |
+
position: relative;
|
| 337 |
+
z-index: 5;
|
| 338 |
+
}
|
| 339 |
+
|
| 340 |
+
.control-room button[aria-haspopup="listbox"],
|
| 341 |
+
.control-room input,
|
| 342 |
+
.control-room textarea,
|
| 343 |
+
.control-room select {
|
| 344 |
+
min-height: 48px;
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
.control-room [role="listbox"],
|
| 348 |
+
.control-room [data-testid="dropdown-options"] {
|
| 349 |
+
z-index: 9999 !important;
|
| 350 |
}
|
| 351 |
|
| 352 |
.status-reason {
|
|
|
|
| 807 |
|
| 808 |
with gr.Row(equal_height=True):
|
| 809 |
with gr.Column(scale=4):
|
| 810 |
+
with gr.Group(elem_classes=["panel-card", "control-room"]):
|
| 811 |
gr.HTML(
|
| 812 |
"""
|
| 813 |
<h2 class="panel-title">Control Room</h2>
|
|
|
|
| 824 |
],
|
| 825 |
value="easy_deadline_extraction",
|
| 826 |
label="Scenario",
|
| 827 |
+
elem_classes=["control-field"],
|
| 828 |
)
|
| 829 |
provider = gr.Dropdown(
|
| 830 |
choices=["baseline", "openrouter", "rl"],
|
| 831 |
value="baseline",
|
| 832 |
label="Policy",
|
| 833 |
+
elem_classes=["control-field"],
|
| 834 |
+
)
|
| 835 |
+
max_steps = gr.Number(
|
| 836 |
+
value=12,
|
| 837 |
+
precision=0,
|
| 838 |
+
label="Max Steps",
|
| 839 |
+
elem_classes=["control-field"],
|
| 840 |
)
|
|
|
|
| 841 |
with gr.Accordion("Provider Settings", open=False):
|
| 842 |
model_name = gr.Textbox(
|
| 843 |
value="google/gemma-4-31b-it",
|
| 844 |
label="OpenRouter Model",
|
| 845 |
+
elem_classes=["control-field"],
|
| 846 |
)
|
| 847 |
checkpoint_path = gr.Textbox(
|
| 848 |
value=_default_rl_checkpoint(),
|
| 849 |
label="RL Checkpoint Path",
|
| 850 |
+
elem_classes=["control-field"],
|
| 851 |
)
|
| 852 |
api_key = gr.Textbox(
|
| 853 |
type="password",
|
| 854 |
label="OPENROUTER_API_KEY",
|
| 855 |
+
elem_classes=["control-field"],
|
| 856 |
)
|
| 857 |
with gr.Row():
|
| 858 |
reset = gr.Button("Reset Scenario", variant="secondary")
|