aikacl commited on
Commit
ab4e660
Β·
verified Β·
1 Parent(s): 89983f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -9
app.py CHANGED
@@ -141,6 +141,11 @@ textarea {
141
  }
142
 
143
  /* ── Document List ───────────────────────────────── */
 
 
 
 
 
144
  .doc-list-container .gr-textbox {
145
  border-left: 3px solid #63b3ed !important;
146
  margin-bottom: 8px !important;
@@ -253,19 +258,26 @@ textarea {
253
  padding: 16px 20px;
254
  margin-top: 20px;
255
  }
 
 
 
 
 
 
256
  .citation-box pre {
257
  background: #1e293b !important;
258
  border-radius: 8px !important;
259
  padding: 14px !important;
260
- font-size: 11.5px !important;
261
- line-height: 1.6 !important;
 
262
  color: #e2e8f0 !important;
263
  overflow-x: auto;
264
  }
265
- .citation-box h3 {
266
- font-size: 14px !important;
267
- color: #64748b !important;
268
- margin: 0 0 10px 0 !important;
269
  }
270
 
271
  /* ── Config Row (Instruction + ChunkSize + Example) */
@@ -510,9 +522,7 @@ with gr.Blocks(
510
  # ── Citation ──
511
  gr.HTML("""
512
  <details class="citation-box">
513
- <summary style="cursor:pointer;font-weight:600;font-size:14px;color:#64748b;">
514
- Cite this work
515
- </summary>
516
  <pre><code>@misc{zhao2026kalmrerankerv1,
517
  title={KaLM-Reranker-V1: Fast but Not Late Interaction for Compressed Document Reranking},
518
  author={Xinping Zhao and Jiaxin Xu and Ziqi Dai and Xin Zhang and Shouzheng Huang
 
141
  }
142
 
143
  /* ── Document List ───────────────────────────────── */
144
+ .doc-list-container {
145
+ max-height: 380px;
146
+ overflow-y: auto;
147
+ padding-right: 4px;
148
+ }
149
  .doc-list-container .gr-textbox {
150
  border-left: 3px solid #63b3ed !important;
151
  margin-bottom: 8px !important;
 
258
  padding: 16px 20px;
259
  margin-top: 20px;
260
  }
261
+ .citation-box summary {
262
+ cursor: pointer;
263
+ font-weight: 600;
264
+ font-size: 14px;
265
+ color: #475569;
266
+ }
267
  .citation-box pre {
268
  background: #1e293b !important;
269
  border-radius: 8px !important;
270
  padding: 14px !important;
271
+ margin-top: 10px !important;
272
+ font-size: 12px !important;
273
+ line-height: 1.7 !important;
274
  color: #e2e8f0 !important;
275
  overflow-x: auto;
276
  }
277
+ .citation-box pre code {
278
+ color: #e2e8f0 !important;
279
+ background: transparent !important;
280
+ font-family: 'Fira Code', 'Consolas', monospace !important;
281
  }
282
 
283
  /* ── Config Row (Instruction + ChunkSize + Example) */
 
522
  # ── Citation ──
523
  gr.HTML("""
524
  <details class="citation-box">
525
+ <summary>Cite this work</summary>
 
 
526
  <pre><code>@misc{zhao2026kalmrerankerv1,
527
  title={KaLM-Reranker-V1: Fast but Not Late Interaction for Compressed Document Reranking},
528
  author={Xinping Zhao and Jiaxin Xu and Ziqi Dai and Xin Zhang and Shouzheng Huang