Davichick commited on
Commit
589aa5d
Β·
verified Β·
1 Parent(s): 3aa8a33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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("Held up", T["hot"], "0 0 2px 0"))
212
  elif sl.startswith('cons:'):
213
  section = 'cons'
214
- out.append(rail("Gave way", T["quench"], "22px 0 2px 0"))
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="86" 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,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="18px 0 10px 0"))
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