Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
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 |
-
|
| 261 |
-
|
|
|
|
| 262 |
color: #e2e8f0 !important;
|
| 263 |
overflow-x: auto;
|
| 264 |
}
|
| 265 |
-
.citation-box
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 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
|
| 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
|