ginnyxxxxxxx commited on
Commit
543266c
·
1 Parent(s): 6bf5fce
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -411,17 +411,18 @@ CHAIN_CSS = """
411
  /* ── Prompt collapsible ── */
412
  details.hct-prompt-details { padding: 0 14px 10px; }
413
  details.hct-prompt-details summary {
414
- display: inline-flex; align-items: center; list-style: none;
415
- font-family: 'DM Mono', monospace; font-size: 9px;
416
- letter-spacing: 0.08em; text-transform: uppercase;
417
- padding: 3px 10px; border-radius: 20px; cursor: pointer;
418
- border: 1px solid currentColor; opacity: 0.4;
419
- transition: opacity 0.2s; background: transparent; user-select: none;
 
420
  }
421
  details.hct-prompt-details summary::-webkit-details-marker { display: none; }
422
- details.hct-prompt-details summary::before { content: '▼ prompt'; }
423
- details.hct-prompt-details[open] summary::before { content: '▲ prompt'; }
424
- details.hct-prompt-details summary:hover { opacity: 0.75; }
425
  .hct-s1 details.hct-prompt-details summary { color: #3a4a80; }
426
  .hct-s2 details.hct-prompt-details summary { color: #7a4a10; }
427
  .hct-s3 details.hct-prompt-details summary { color: #b0302a; }
@@ -968,11 +969,11 @@ with gr.Blocks(title="HiCoTraj Demo") as app:
968
  with gr.Tabs():
969
  with gr.Tab("① Raw Stay Points"):
970
  sp_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
971
- with gr.Tab("② Visiting Summaries"):
972
- summary_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
973
- with gr.Tab("③ Activity Chronicles"):
974
  raw_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
975
  show_all_btn = gr.Button("Show All Days", size="sm", variant="secondary")
 
 
976
 
977
  with gr.Column(scale=1):
978
  gr.Markdown("### Hierarchical Chain-of-Thought Reasoning")
@@ -1022,4 +1023,4 @@ with gr.Blocks(title="HiCoTraj Demo") as app:
1022
  outputs=[raw_out, show_all_btn]
1023
  )
1024
 
1025
- app.launch(show_error=True, theme=gr.themes.Soft(), share=True)
 
411
  /* ── Prompt collapsible ── */
412
  details.hct-prompt-details { padding: 0 14px 10px; }
413
  details.hct-prompt-details summary {
414
+ display: inline-flex; align-items: center; gap: 5px; list-style: none;
415
+ font-family: 'DM Mono', monospace; font-size: 10.5px; font-weight: 600;
416
+ letter-spacing: 0.06em; text-transform: uppercase;
417
+ padding: 4px 13px; border-radius: 20px; cursor: pointer;
418
+ border: 1.5px solid currentColor; opacity: 0.75;
419
+ transition: opacity 0.2s, background 0.2s; background: rgba(255,255,255,0.6);
420
+ user-select: none;
421
  }
422
  details.hct-prompt-details summary::-webkit-details-marker { display: none; }
423
+ details.hct-prompt-details summary::before { content: '▼ View Prompt'; }
424
+ details.hct-prompt-details[open] summary::before { content: '▲ Hide Prompt'; }
425
+ details.hct-prompt-details summary:hover { opacity: 1; background: rgba(255,255,255,0.95); }
426
  .hct-s1 details.hct-prompt-details summary { color: #3a4a80; }
427
  .hct-s2 details.hct-prompt-details summary { color: #7a4a10; }
428
  .hct-s3 details.hct-prompt-details summary { color: #b0302a; }
 
969
  with gr.Tabs():
970
  with gr.Tab("① Raw Stay Points"):
971
  sp_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
972
+ with gr.Tab("② Activity Chronicles"):
 
 
973
  raw_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
974
  show_all_btn = gr.Button("Show All Days", size="sm", variant="secondary")
975
+ with gr.Tab("③ Visiting Summaries"):
976
+ summary_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
977
 
978
  with gr.Column(scale=1):
979
  gr.Markdown("### Hierarchical Chain-of-Thought Reasoning")
 
1023
  outputs=[raw_out, show_all_btn]
1024
  )
1025
 
1026
+ app.launch(show_error=True, theme=gr.themes.Soft())