seonglae-holistic commited on
Commit
da89e08
·
1 Parent(s): 4658cc1

fix: text bibtext to latex code block

Browse files
Files changed (2) hide show
  1. app.py +4 -5
  2. src/about.py +2 -4
app.py CHANGED
@@ -156,7 +156,6 @@ def init_leaderboard(dataframe):
156
 
157
  # Update datatypes
158
  datatypes = [getattr(auto_eval_column_attrs, field).type for field in AutoEvalColumn.model_fields]
159
- datatypes.extend(["str", "str", "str"]) # For helper columns
160
 
161
  return Leaderboard(
162
  value=dataframe,
@@ -268,13 +267,13 @@ with demo:
268
  )
269
 
270
  with gr.Row():
271
- with gr.Accordion("📙 Citation", open=False):
272
- citation_button = gr.Textbox(
273
  value=CITATION_BUTTON_TEXT,
274
  label=CITATION_BUTTON_LABEL,
275
- lines=20,
276
  elem_id="citation-button",
277
- show_copy_button=True,
278
  )
279
 
280
  # Only schedule space restarts if not in local mode
 
156
 
157
  # Update datatypes
158
  datatypes = [getattr(auto_eval_column_attrs, field).type for field in AutoEvalColumn.model_fields]
 
159
 
160
  return Leaderboard(
161
  value=dataframe,
 
267
  )
268
 
269
  with gr.Row():
270
+ with gr.Accordion("📙 Citation", open=True):
271
+ citation_button = gr.Code(
272
  value=CITATION_BUTTON_TEXT,
273
  label=CITATION_BUTTON_LABEL,
274
+ lines=6,
275
  elem_id="citation-button",
276
+ language="latex",
277
  )
278
 
279
  # Only schedule space restarts if not in local mode
src/about.py CHANGED
@@ -96,11 +96,9 @@ If your library shows as "FAILED" in the assessment queue, check that:
96
  """
97
 
98
  CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
99
- CITATION_BUTTON_TEXT = r"""
100
- @article{LibVulnWatch2025,
101
  title={LibVulnWatch: Systematic Vulnerability Assessment and Leaderboard Tracking for Open-Source AI Libraries},
102
  author={First Author and Second Author},
103
  journal={ICML 2025 Technical AI Governance Workshop},
104
  year={2025}
105
- }
106
- """
 
96
  """
97
 
98
  CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
99
+ CITATION_BUTTON_TEXT = r"""@article{LibVulnWatch2025,
 
100
  title={LibVulnWatch: Systematic Vulnerability Assessment and Leaderboard Tracking for Open-Source AI Libraries},
101
  author={First Author and Second Author},
102
  journal={ICML 2025 Technical AI Governance Workshop},
103
  year={2025}
104
+ }"""