Spaces:
Running
Running
omkarenator
commited on
Commit
•
35a3f42
1
Parent(s):
e384d00
add citation
Browse files
main.py
CHANGED
@@ -121,6 +121,15 @@ front_matter = {
|
|
121 |
}
|
122 |
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
def read_bibs():
|
125 |
bib_data = parse_file("bibliography.bib")
|
126 |
cits = []
|
@@ -405,7 +414,12 @@ def main():
|
|
405 |
),
|
406 |
intro(),
|
407 |
),
|
408 |
-
D_appendix(
|
|
|
|
|
|
|
|
|
|
|
409 |
Div(*read_bibs(), style="display: none;"),
|
410 |
)
|
411 |
|
|
|
121 |
}
|
122 |
|
123 |
|
124 |
+
citation_long = """
|
125 |
+
@misc{txt360data2024,
|
126 |
+
title = {TxT360: a globally deduplicated dataset for LLM pretraining},
|
127 |
+
author = {Liping Tang, Nikhil Ranjan, Omkar Pangarkar, Zhen Wang, An Li, Zhoujun Cheng, Suqi Sun, Cun Mu, Victor Miller, Yue Peng, Eric P. Xing, Zhengzhong Liu},
|
128 |
+
year = 2024
|
129 |
+
}
|
130 |
+
"""
|
131 |
+
|
132 |
+
|
133 |
def read_bibs():
|
134 |
bib_data = parse_file("bibliography.bib")
|
135 |
cits = []
|
|
|
414 |
),
|
415 |
intro(),
|
416 |
),
|
417 |
+
D_appendix(
|
418 |
+
D_bibliography(src="bibliography.bib"),
|
419 |
+
H3("Citation"),
|
420 |
+
P("For attribution in academic contexts, please cite this work as"),
|
421 |
+
Pre(citation_long, cls="citation long"),
|
422 |
+
),
|
423 |
Div(*read_bibs(), style="display: none;"),
|
424 |
)
|
425 |
|
style.css
CHANGED
@@ -273,3 +273,18 @@ d-code {
|
|
273 |
font-size: 0.8em !important;
|
274 |
}
|
275 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
font-size: 0.8em !important;
|
274 |
}
|
275 |
|
276 |
+
d-appendix .citation {
|
277 |
+
font-size: 11px;
|
278 |
+
line-height: 15px;
|
279 |
+
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
280 |
+
padding-left: 18px;
|
281 |
+
border: 1px solid rgba(0,0,0,0.1);
|
282 |
+
background: rgba(0, 0, 0, 0.02);
|
283 |
+
padding: 10px 18px;
|
284 |
+
border-radius: 3px;
|
285 |
+
color: rgba(150, 150, 150, 1);
|
286 |
+
overflow: hidden;
|
287 |
+
margin-top: -12px;
|
288 |
+
white-space: pre-wrap;
|
289 |
+
word-wrap: break-word;
|
290 |
+
}
|