Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
hanhainebula
commited on
Merge pull request #6 from AIR-Bench/release-arxiv-paper
Browse files- app.py +7 -1
- src/about.py +2 -0
app.py
CHANGED
@@ -4,7 +4,10 @@ import gradio as gr
|
|
4 |
from apscheduler.schedulers.background import BackgroundScheduler
|
5 |
from huggingface_hub import snapshot_download
|
6 |
|
7 |
-
from src.about import
|
|
|
|
|
|
|
8 |
from src.benchmarks import LongDocBenchmarks, QABenchmarks
|
9 |
from src.columns import COL_NAME_RERANKING_MODEL, COL_NAME_RETRIEVAL_MODEL
|
10 |
from src.components import (
|
@@ -615,6 +618,9 @@ with demo:
|
|
615 |
with gr.TabItem("📝 About", elem_id="llm-benchmark-tab-table", id=3):
|
616 |
gr.Markdown(BENCHMARKS_TEXT, elem_classes="markdown-text")
|
617 |
|
|
|
|
|
|
|
618 |
if __name__ == "__main__":
|
619 |
scheduler = BackgroundScheduler()
|
620 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
|
|
4 |
from apscheduler.schedulers.background import BackgroundScheduler
|
5 |
from huggingface_hub import snapshot_download
|
6 |
|
7 |
+
from src.about import (
|
8 |
+
BENCHMARKS_TEXT, EVALUATION_QUEUE_TEXT, INTRODUCTION_TEXT, TITLE,
|
9 |
+
CITATION_BUTTON_LABEL, CITATION_BUTTON_TEXT
|
10 |
+
)
|
11 |
from src.benchmarks import LongDocBenchmarks, QABenchmarks
|
12 |
from src.columns import COL_NAME_RERANKING_MODEL, COL_NAME_RETRIEVAL_MODEL
|
13 |
from src.components import (
|
|
|
618 |
with gr.TabItem("📝 About", elem_id="llm-benchmark-tab-table", id=3):
|
619 |
gr.Markdown(BENCHMARKS_TEXT, elem_classes="markdown-text")
|
620 |
|
621 |
+
gr.Markdown(f"{CITATION_BUTTON_LABEL}\n\n{CITATION_BUTTON_TEXT}", elem_classes="markdown-text")
|
622 |
+
|
623 |
+
|
624 |
if __name__ == "__main__":
|
625 |
scheduler = BackgroundScheduler()
|
626 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
src/about.py
CHANGED
@@ -32,6 +32,7 @@ EVALUATION_QUEUE_TEXT = """
|
|
32 |
|
33 |
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
|
34 |
CITATION_BUTTON_TEXT = r"""
|
|
|
35 |
@misc{chen2024airbench,
|
36 |
title={AIR-Bench: Automated Heterogeneous Information Retrieval Benchmark},
|
37 |
author={Jianlyu Chen and Nan Wang and Chaofan Li and Bo Wang and Shitao Xiao and Han Xiao and Hao Liao and Defu Lian and Zheng Liu},
|
@@ -41,4 +42,5 @@ CITATION_BUTTON_TEXT = r"""
|
|
41 |
primaryClass={cs.IR},
|
42 |
url={https://arxiv.org/abs/2412.13102},
|
43 |
}
|
|
|
44 |
"""
|
|
|
32 |
|
33 |
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
|
34 |
CITATION_BUTTON_TEXT = r"""
|
35 |
+
```bibtex
|
36 |
@misc{chen2024airbench,
|
37 |
title={AIR-Bench: Automated Heterogeneous Information Retrieval Benchmark},
|
38 |
author={Jianlyu Chen and Nan Wang and Chaofan Li and Bo Wang and Shitao Xiao and Han Xiao and Hao Liao and Defu Lian and Zheng Liu},
|
|
|
42 |
primaryClass={cs.IR},
|
43 |
url={https://arxiv.org/abs/2412.13102},
|
44 |
}
|
45 |
+
```
|
46 |
"""
|