Add paper citation to about page (#118)
Browse files- Dockerfile +2 -17
- about.py +40 -4
Dockerfile
CHANGED
|
@@ -1,11 +1,5 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
|
| 4 |
-
# (0) Install SSH client tools (and git, if you're pulling via SSH)
|
| 5 |
-
RUN apt-get update && \
|
| 6 |
-
apt-get install -y --no-install-recommends openssh-client git && \
|
| 7 |
-
rm -rf /var/lib/apt/lists/*
|
| 8 |
-
|
| 9 |
# The two following lines are requirements for the Dev Mode to be functional
|
| 10 |
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
|
| 11 |
RUN useradd -m -u 1000 user
|
|
@@ -15,17 +9,8 @@ WORKDIR /app
|
|
| 15 |
# (2) Copy dependencies manifest
|
| 16 |
COPY --chown=user requirements.txt requirements.txt
|
| 17 |
|
| 18 |
-
# (3) Install dependencies
|
| 19 |
-
RUN --
|
| 20 |
-
--mount=type=secret,id=ASTABENCH_DEPLOY_KEY,mode=0400,required=true \
|
| 21 |
-
mkdir -p /root/.ssh && chmod 700 /root/.ssh && \
|
| 22 |
-
cat /run/secrets/AGENTEVAL_DEPLOY_KEY > /root/.ssh/id_ed25519 && chmod 600 /root/.ssh/id_ed25519 && \
|
| 23 |
-
cat /run/secrets/ASTABENCH_DEPLOY_KEY > /root/.ssh/id_astabench && chmod 600 /root/.ssh/id_astabench && \
|
| 24 |
-
ssh-keyscan github.com >> /root/.ssh/known_hosts && \
|
| 25 |
-
printf 'Host github.com\n User git\n IdentityFile /root/.ssh/id_ed25519\n IdentityFile /root/.ssh/id_astabench\n StrictHostKeyChecking no\n' >> /root/.ssh/config && \
|
| 26 |
-
# rewrite all GitHub HTTPS URLs to SSH so nested deps install via SSH
|
| 27 |
-
git config --global url."ssh://git@github.com/".insteadOf "https://github.com/" && \
|
| 28 |
-
pip install --no-cache-dir --upgrade -r requirements.txt
|
| 29 |
|
| 30 |
# (4) Copy in your Gradio app code
|
| 31 |
COPY . .
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
# The two following lines are requirements for the Dev Mode to be functional
|
| 4 |
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
|
| 5 |
RUN useradd -m -u 1000 user
|
|
|
|
| 9 |
# (2) Copy dependencies manifest
|
| 10 |
COPY --chown=user requirements.txt requirements.txt
|
| 11 |
|
| 12 |
+
# (3) Install dependencies
|
| 13 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# (4) Copy in your Gradio app code
|
| 16 |
COPY . .
|
about.py
CHANGED
|
@@ -114,23 +114,59 @@ def build_page():
|
|
| 114 |
)
|
| 115 |
gr.Markdown("---", elem_classes="divider-line")
|
| 116 |
|
| 117 |
-
# --- Section 6:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
gr.HTML(
|
| 119 |
"""
|
| 120 |
<div class="learn-more-section">
|
| 121 |
<h2>Learn More</h2>
|
| 122 |
<div class="link-buttons-container">
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
<a href="https://allenai.org/blog/astabench" target="_blank" class="link-button">
|
| 125 |
<span style="color:#0fcb8c;">AstaBench technical blog post</span>
|
| 126 |
<span class="external-link-icon">↗</span>
|
| 127 |
</a>
|
| 128 |
-
|
| 129 |
<a href="/submit" target="_blank" class="link-button">
|
| 130 |
<span style="color:#0fcb8c;">Submit an agent for evaluation</span>
|
| 131 |
<span class="external-link-icon">↗</span>
|
| 132 |
</a>
|
| 133 |
-
|
| 134 |
</div>
|
| 135 |
</div>
|
| 136 |
"""
|
|
|
|
| 114 |
)
|
| 115 |
gr.Markdown("---", elem_classes="divider-line")
|
| 116 |
|
| 117 |
+
# --- Section 6: Citation ---
|
| 118 |
+
gr.HTML(
|
| 119 |
+
"""
|
| 120 |
+
<h2>Citation</h2>
|
| 121 |
+
<p>
|
| 122 |
+
If you use AstaBench, please cite the <a href="https://openreview.net/forum?id=M7TNf5J26u" target="_blank" class="primary-link-button">AstaBench paper</a> (ICLR 2026):
|
| 123 |
+
</p>
|
| 124 |
+
<style>
|
| 125 |
+
#astabench-bibtex { scrollbar-width: auto; scrollbar-color: #9fead1 rgba(255,255,255,0.12); }
|
| 126 |
+
#astabench-bibtex::-webkit-scrollbar { -webkit-appearance: none; appearance: none; height: 12px; width: 12px; }
|
| 127 |
+
#astabench-bibtex::-webkit-scrollbar-track { background: rgba(255,255,255,0.12); border-radius: 6px; }
|
| 128 |
+
#astabench-bibtex::-webkit-scrollbar-thumb { background: #9fead1; border-radius: 6px; border: 2px solid rgba(0,0,0,0.4); }
|
| 129 |
+
#astabench-bibtex::-webkit-scrollbar-thumb:hover { background: #0fcb8c; }
|
| 130 |
+
#astabench-bibtex::-webkit-scrollbar-corner { background: transparent; }
|
| 131 |
+
</style>
|
| 132 |
+
<div style="border: 1px solid rgba(159,234,209,0.35); border-radius: 8px; background: rgba(0,0,0,0.25); padding: 8px 16px 12px; margin: 12px 0;">
|
| 133 |
+
<div style="display: flex; justify-content: flex-end; margin-bottom: -8px;">
|
| 134 |
+
<button type="button" aria-label="Copy citation" onclick="(function(b){const pre=document.getElementById('astabench-bibtex');navigator.clipboard.writeText(pre.innerText).then(()=>{const t=b.textContent;b.textContent='Copied!';setTimeout(()=>{b.textContent=t;},1500);});})(this)" style="padding: 4px 12px; font-size: 12px; font-family: inherit; border-radius: 6px; border: 1px solid #0fcb8c; background: rgba(15,203,140,0.15); color: #0fcb8c; cursor: pointer;">Copy</button>
|
| 135 |
+
</div>
|
| 136 |
+
<pre id="astabench-bibtex" style="overflow: auto; max-height: 220px; margin: 0; padding: 0; background: transparent; border: 0;"><code>@inproceedings{astabench,
|
| 137 |
+
title = {Asta{B}ench: Rigorous Benchmarking of {AI} Agents with a Scientific Research Suite},
|
| 138 |
+
author = {Jonathan Bragg and Mike D'Arcy and Nishant Balepur and Dan Bareket and Bhavana Dalvi Mishra and Sergey Feldman and Dany Haddad and Jena D. Hwang and Peter Jansen and Varsha Kishore and Bodhisattwa Prasad Majumder and Aakanksha Naik and Sigal Rahamimov and Kyle Richardson and Amanpreet Singh and Harshit Surana and Aryeh Tiktinsky and Rosni Vasu and Guy Wiener and Chloe Anastasiades and Stefanus Candra and Jason Dunkelberger and Daniel Emery and Rob Evans and Malachi Hamada and Regan Huff and Rodney Kinney and Matt Latzke and Jaron Lochner and Ruben Lozano-Aguilera and Ngoc-Uyen Nguyen and Smita Rao and Amber Tanaka and Brooke Vlahos and Peter Clark and Doug Downey and Yoav Goldberg and Ashish Sabharwal and Daniel S. Weld},
|
| 139 |
+
booktitle = {The Fourteenth International Conference on Learning Representations},
|
| 140 |
+
year = {2026},
|
| 141 |
+
url = {https://openreview.net/forum?id=M7TNf5J26u},
|
| 142 |
+
}</code></pre>
|
| 143 |
+
</div>
|
| 144 |
+
"""
|
| 145 |
+
)
|
| 146 |
+
gr.Markdown("---", elem_classes="divider-line")
|
| 147 |
+
|
| 148 |
+
# --- Section 7: Learn More ---
|
| 149 |
gr.HTML(
|
| 150 |
"""
|
| 151 |
<div class="learn-more-section">
|
| 152 |
<h2>Learn More</h2>
|
| 153 |
<div class="link-buttons-container">
|
| 154 |
+
|
| 155 |
+
<a href="https://openreview.net/forum?id=M7TNf5J26u" target="_blank" class="link-button">
|
| 156 |
+
<span style="color:#0fcb8c;">AstaBench paper (ICLR 2026)</span>
|
| 157 |
+
<span class="external-link-icon">↗</span>
|
| 158 |
+
</a>
|
| 159 |
+
|
| 160 |
<a href="https://allenai.org/blog/astabench" target="_blank" class="link-button">
|
| 161 |
<span style="color:#0fcb8c;">AstaBench technical blog post</span>
|
| 162 |
<span class="external-link-icon">↗</span>
|
| 163 |
</a>
|
| 164 |
+
|
| 165 |
<a href="/submit" target="_blank" class="link-button">
|
| 166 |
<span style="color:#0fcb8c;">Submit an agent for evaluation</span>
|
| 167 |
<span class="external-link-icon">↗</span>
|
| 168 |
</a>
|
| 169 |
+
|
| 170 |
</div>
|
| 171 |
</div>
|
| 172 |
"""
|