Jay commited on
Commit
b5caa7a
β€’
1 Parent(s): c1bc2bf

feat: add citation

Browse files
Files changed (2) hide show
  1. app.py +23 -1
  2. changelog.md +10 -4
app.py CHANGED
@@ -32,7 +32,19 @@ CLASSIFICATION = {
32
  }
33
 
34
 
35
- _BIBTEX = """ Waiting for paper ... """
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  _LAST_UPDATED = "July 21, 2024"
38
 
@@ -194,6 +206,16 @@ with gr.Blocks() as demo:
194
  with gr.Row():
195
  gr.Markdown(REFERENCE_TEXT, elem_classes="markdown-text")
196
 
 
 
 
 
 
 
 
 
 
 
197
 
198
  gr.Markdown(f"Last updated on **{_LAST_UPDATED}**", elem_classes="markdown-text")
199
 
 
32
  }
33
 
34
 
35
+ # _BIBTEX = """ Waiting for paper ... """
36
+
37
+ _BIBTEX = """
38
+ @misc{zhang2024chinesesafechinesebenchmarkevaluating,
39
+ title={ChineseSafe: A Chinese Benchmark for Evaluating Safety in Large Language Models},
40
+ author={Hengxiang Zhang and Hongfu Gao and Qiang Hu and Guanhua Chen and Lili Yang and Bingyi Jing and Hongxin Wei and Bing Wang and Haifeng Bai and Lei Yang},
41
+ year={2024},
42
+ eprint={2410.18491},
43
+ archivePrefix={arXiv},
44
+ primaryClass={cs.CL},
45
+ url={https://arxiv.org/abs/2410.18491},
46
+ }
47
+ """
48
 
49
  _LAST_UPDATED = "July 21, 2024"
50
 
 
206
  with gr.Row():
207
  gr.Markdown(REFERENCE_TEXT, elem_classes="markdown-text")
208
 
209
+ # πŸ‘‰ this part is for citation
210
+ with gr.Row():
211
+ with gr.Accordion("πŸ“™ Citation", open=False):
212
+ gr.Textbox(
213
+ value=_BIBTEX,
214
+ lines=7,
215
+ label="Copy the BibTeX snippet to cite this source",
216
+ elem_id="citation-button",
217
+ show_copy_button=True
218
+ )
219
 
220
  gr.Markdown(f"Last updated on **{_LAST_UPDATED}**", elem_classes="markdown-text")
221
 
changelog.md CHANGED
@@ -1,8 +1,14 @@
1
  # CHANGELOG
2
 
3
- ### Version Number
4
- v1.0.0
5
- 2024-7-16
6
 
7
- ### Changed
8
  - [1]feat: upload the first version
 
 
 
 
 
 
 
 
1
  # CHANGELOG
2
 
3
+ ### 2024-7-16
4
+ version: v1.0.0
 
5
 
6
+ changed:
7
  - [1]feat: upload the first version
8
+
9
+
10
+ ### 2024-10-26
11
+ version: v1.0.1
12
+
13
+ changed:
14
+ - [1]feat: add citation