Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,10 +208,10 @@ def format_feedback_html(raw_text: str) -> str:
|
|
| 208 |
sl = s.lower()
|
| 209 |
if sl.startswith('pros:'):
|
| 210 |
section = 'pros'
|
| 211 |
-
out.append(rail("
|
| 212 |
elif sl.startswith('cons:'):
|
| 213 |
section = 'cons'
|
| 214 |
-
out.append(rail("
|
| 215 |
elif sl.startswith('example answer:'):
|
| 216 |
section = 'example'
|
| 217 |
out.append(
|
|
@@ -962,7 +962,7 @@ HEADER_HTML = f"""
|
|
| 962 |
# ββ Right-panel state HTML ββββββββββββββββββββββββββββββββββββββββββ
|
| 963 |
IDLE_HTML = f"""
|
| 964 |
<div style="text-align:center;padding:52px 20px;font-family:{BODY};">
|
| 965 |
-
<svg width="
|
| 966 |
<circle cx="43" cy="43" r="34" stroke="{T['line']}" stroke-width="2"/>
|
| 967 |
<path d="M43 9a34 34 0 0 1 24 10" stroke="{T['dim']}" stroke-width="2" stroke-linecap="round"
|
| 968 |
style="animation:forge-breathe 3.6s ease-in-out infinite;"/>
|
|
@@ -1089,7 +1089,7 @@ with gr.Blocks(**_blocks_kwargs) as app:
|
|
| 1089 |
# ββ RIGHT βββββββββββββββββββββββββββββββββββββββββββ
|
| 1090 |
with gr.Column(scale=2, elem_id="col-right"):
|
| 1091 |
stats_display = gr.HTML(value=render_stats(EMPTY_STATS))
|
| 1092 |
-
gr.HTML(rail("Evaluation", margin="
|
| 1093 |
score_circle = gr.HTML(value=IDLE_HTML)
|
| 1094 |
feedback_display = gr.HTML(value="")
|
| 1095 |
|
|
|
|
| 208 |
sl = s.lower()
|
| 209 |
if sl.startswith('pros:'):
|
| 210 |
section = 'pros'
|
| 211 |
+
out.append(rail("Pros", T["hot"], "0 0 2px 0"))
|
| 212 |
elif sl.startswith('cons:'):
|
| 213 |
section = 'cons'
|
| 214 |
+
out.append(rail("Cons", T["quench"], "22px 0 2px 0"))
|
| 215 |
elif sl.startswith('example answer:'):
|
| 216 |
section = 'example'
|
| 217 |
out.append(
|
|
|
|
| 962 |
# ββ Right-panel state HTML ββββββββββββββββββββββββββββββββββββββββββ
|
| 963 |
IDLE_HTML = f"""
|
| 964 |
<div style="text-align:center;padding:52px 20px;font-family:{BODY};">
|
| 965 |
+
<svg width="285" height="86" viewBox="0 0 86 86" fill="none">
|
| 966 |
<circle cx="43" cy="43" r="34" stroke="{T['line']}" stroke-width="2"/>
|
| 967 |
<path d="M43 9a34 34 0 0 1 24 10" stroke="{T['dim']}" stroke-width="2" stroke-linecap="round"
|
| 968 |
style="animation:forge-breathe 3.6s ease-in-out infinite;"/>
|
|
|
|
| 1089 |
# ββ RIGHT βββββββββββββββββββββββββββββββββββββββββββ
|
| 1090 |
with gr.Column(scale=2, elem_id="col-right"):
|
| 1091 |
stats_display = gr.HTML(value=render_stats(EMPTY_STATS))
|
| 1092 |
+
gr.HTML(rail("Evaluation", margin="2px 0 4px 0"))
|
| 1093 |
score_circle = gr.HTML(value=IDLE_HTML)
|
| 1094 |
feedback_display = gr.HTML(value="")
|
| 1095 |
|