Spaces:
Sleeping
leaderboard: anonymize Justin1233 references + force English UI
Browse filesThree independent fixes:
1. Drop Justin1233/RobustBench-TC URL and run_eval.py from the header
markdown — both leaked the contributor handle and project repo,
violating double-blind review. Replaced with a generic 'identifiers
withheld during double-blind review' message.
2. gradio's gr.File widget renders the upload placeholder in the
visitor's browser locale (zh-CN by default for many users); pin
GRADIO_DEFAULT_LANG=en at launch so reviewers always see the
English string instead of '将文件拖放到此处或点击上传'.
3. Rename the post-submit Dataframe label from 'leaderboard
(refreshed)' to 'Updated leaderboard after this submission' and
pre-populate it with the current leaderboard so the table is no
longer empty before any submission has been made.
|
@@ -7,14 +7,14 @@ Run locally:
|
|
| 7 |
Deploy on HF Spaces:
|
| 8 |
huggingface-cli login
|
| 9 |
huggingface-cli repo create robustbench-tc-leaderboard --type space --space_sdk gradio
|
| 10 |
-
git remote add space https://huggingface.co/spaces/
|
| 11 |
git add . && git commit -m "init" && git push space main
|
| 12 |
|
| 13 |
Submission flow (BFCL-style):
|
| 14 |
-
1. User downloads the api_eval dataset
|
| 15 |
-
|
| 16 |
-
2. User runs their model
|
| 17 |
-
(
|
| 18 |
3. User uploads predictions JSON to this Space.
|
| 19 |
4. The Space scores it server-side with eval_results.py and updates
|
| 20 |
the leaderboard.
|
|
@@ -278,15 +278,15 @@ def submit(file) -> tuple[str, pd.DataFrame]:
|
|
| 278 |
)
|
| 279 |
|
| 280 |
|
| 281 |
-
with gr.Blocks(title="RobustBench-TC Leaderboard"
|
|
|
|
| 282 |
gr.Markdown("# RobustBench-TC Leaderboard")
|
| 283 |
gr.Markdown(
|
| 284 |
"A sim-to-real robustness leaderboard for tool-use language agents. "
|
| 285 |
"**Run inference on your own hardware**, upload the predictions JSON, "
|
| 286 |
"and we score it server-side. See the schema in the *Submit* tab.\n\n"
|
| 287 |
-
"Dataset
|
| 288 |
-
"
|
| 289 |
-
"Inference helper: `scripts/run_eval.py` in the project repo."
|
| 290 |
)
|
| 291 |
with gr.Tab("Leaderboard"):
|
| 292 |
gr.Markdown(
|
|
@@ -303,10 +303,24 @@ with gr.Blocks(title="RobustBench-TC Leaderboard") as demo:
|
|
| 303 |
value=load_leaderboard(), interactive=False, wrap=True,
|
| 304 |
)
|
| 305 |
with gr.Tab("Submit"):
|
| 306 |
-
gr.Markdown(
|
| 307 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 308 |
out_msg = gr.Markdown()
|
| 309 |
-
out_table = gr.Dataframe(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
gr.Button("Submit").click(submit, inputs=file,
|
| 311 |
outputs=[out_msg, out_table])
|
| 312 |
with gr.Tab("About"):
|
|
@@ -320,6 +334,13 @@ with gr.Blocks(title="RobustBench-TC Leaderboard") as demo:
|
|
| 320 |
|
| 321 |
|
| 322 |
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
# show_api=False: the bundled gradio_client 0.x crashes generating the
|
| 324 |
# API schema when our nested data has dict-valued additionalProperties
|
| 325 |
# ("TypeError: argument of type 'bool' is not iterable" in
|
|
|
|
| 7 |
Deploy on HF Spaces:
|
| 8 |
huggingface-cli login
|
| 9 |
huggingface-cli repo create robustbench-tc-leaderboard --type space --space_sdk gradio
|
| 10 |
+
git remote add space https://huggingface.co/spaces/<HF_USERNAME>/robustbench-tc-leaderboard
|
| 11 |
git add . && git commit -m "init" && git push space main
|
| 12 |
|
| 13 |
Submission flow (BFCL-style):
|
| 14 |
+
1. User downloads the api_eval dataset (link withheld for double-blind
|
| 15 |
+
review; will be released with the camera-ready version).
|
| 16 |
+
2. User runs their model on their own GPU to produce predictions
|
| 17 |
+
(with the released inference helper).
|
| 18 |
3. User uploads predictions JSON to this Space.
|
| 19 |
4. The Space scores it server-side with eval_results.py and updates
|
| 20 |
the leaderboard.
|
|
|
|
| 278 |
)
|
| 279 |
|
| 280 |
|
| 281 |
+
with gr.Blocks(title="RobustBench-TC Leaderboard",
|
| 282 |
+
analytics_enabled=False) as demo:
|
| 283 |
gr.Markdown("# RobustBench-TC Leaderboard")
|
| 284 |
gr.Markdown(
|
| 285 |
"A sim-to-real robustness leaderboard for tool-use language agents. "
|
| 286 |
"**Run inference on your own hardware**, upload the predictions JSON, "
|
| 287 |
"and we score it server-side. See the schema in the *Submit* tab.\n\n"
|
| 288 |
+
"Dataset and inference helper will be released alongside the camera-ready "
|
| 289 |
+
"version of the paper; identifiers are withheld during double-blind review."
|
|
|
|
| 290 |
)
|
| 291 |
with gr.Tab("Leaderboard"):
|
| 292 |
gr.Markdown(
|
|
|
|
| 303 |
value=load_leaderboard(), interactive=False, wrap=True,
|
| 304 |
)
|
| 305 |
with gr.Tab("Submit"):
|
| 306 |
+
gr.Markdown(
|
| 307 |
+
"Upload the predictions JSON produced by the released inference helper. "
|
| 308 |
+
"The Space scores it server-side and appends the row to the leaderboard."
|
| 309 |
+
)
|
| 310 |
+
# Force the upload widget into English; gr.File previously inherited
|
| 311 |
+
# the visitor's browser locale (e.g. zh-CN) for the placeholder text.
|
| 312 |
+
file = gr.File(
|
| 313 |
+
label="predictions.json",
|
| 314 |
+
file_types=[".json"],
|
| 315 |
+
file_count="single",
|
| 316 |
+
type="filepath",
|
| 317 |
+
)
|
| 318 |
out_msg = gr.Markdown()
|
| 319 |
+
out_table = gr.Dataframe(
|
| 320 |
+
label="Updated leaderboard after this submission",
|
| 321 |
+
interactive=False,
|
| 322 |
+
value=load_leaderboard(),
|
| 323 |
+
)
|
| 324 |
gr.Button("Submit").click(submit, inputs=file,
|
| 325 |
outputs=[out_msg, out_table])
|
| 326 |
with gr.Tab("About"):
|
|
|
|
| 334 |
|
| 335 |
|
| 336 |
if __name__ == "__main__":
|
| 337 |
+
# Pin the gradio locale to English. Without this gradio detects the
|
| 338 |
+
# visitor's Accept-Language and renders zh-CN strings such as
|
| 339 |
+
# "将文件拖放到此处或点击上传" on the upload widget.
|
| 340 |
+
import os as _os
|
| 341 |
+
_os.environ.setdefault("GRADIO_DEFAULT_LANG", "en")
|
| 342 |
+
_os.environ.setdefault("LANG", "en_US.UTF-8")
|
| 343 |
+
|
| 344 |
# show_api=False: the bundled gradio_client 0.x crashes generating the
|
| 345 |
# API schema when our nested data has dict-valued additionalProperties
|
| 346 |
# ("TypeError: argument of type 'bool' is not iterable" in
|