Skip to content

fix: remove button from Gradio event handler inputs in benchmark selector#4553

Merged
KennethEnevoldsen merged 2 commits intofix-get_tasks_failurefrom
fix-lb-more
Apr 30, 2026
Merged

fix: remove button from Gradio event handler inputs in benchmark selector#4553
KennethEnevoldsen merged 2 commits intofix-get_tasks_failurefrom
fix-lb-more

Conversation

@KennethEnevoldsen
Copy link
Copy Markdown
Contributor

_update_value and _update_variant used gr.Button as an input to read its label, but Gradio doesn't reliably pass button values causing "didn't receive enough input values" errors (~340 occurrences in logs).

Seems like label is already in scope so no input is needed. Tested locally and everything worked fine (and couldn't get it to re-appear), but I am not 100% sure on this change.

If you add a model or a dataset, please add the corresponding checklist:

…ctor

`_update_value` and `_update_variant` used gr.Button as an input to read
its label, but Gradio doesn't reliably pass button values causing
"didn't receive enough input values" errors (~340 occurrences in logs).

Seems like label is already in scope so no input is needed. Tested locally and everything worked fine (and couldn't get it to re-appear), but I am not 100% sure on this change.
Comment thread mteb/leaderboard/benchmark_selector.py Outdated
Co-authored-by: Roman Solomatin <samoed.roman@gmail.com>
@KennethEnevoldsen KennethEnevoldsen merged commit eb42ec7 into fix-get_tasks_failure Apr 30, 2026
11 checks passed
@KennethEnevoldsen KennethEnevoldsen deleted the fix-lb-more branch April 30, 2026 07:35
KennethEnevoldsen added a commit that referenced this pull request Apr 30, 2026
* fix: Only log missing subset once

Missing subset appears more than 14k times in the leaderboard. It is probably enough just to raise this warning once.

* fix: Allow `get_tasks` to filter out a tasks

Currently:

```
tasks = mteb.get_tasks(["AILAStatutes"], languages=["dan"])
```

would raise an ValueError, now it will raise a warning, but only once.

Currently in the leadboard this produces the following error:

```
  File "/mteb/mteb/abstasks/abstask.py", line 535, in filter_languages
    raise ValueError(
ValueError: No subsets were found for AILAStatutes with filters: language code ['dan', 'swe', 'nno', 'nob'], script None, hf subsets None.
```

* format

* fix: remove button from Gradio event handler inputs in benchmark selector (#4553)

* fix: remove button from Gradio event handler inputs in benchmark selector

`_update_value` and `_update_variant` used gr.Button as an input to read
its label, but Gradio doesn't reliably pass button values causing
"didn't receive enough input values" errors (~340 occurrences in logs).

Seems like label is already in scope so no input is needed. Tested locally and everything worked fine (and couldn't get it to re-appear), but I am not 100% sure on this change.

* Update mteb/leaderboard/benchmark_selector.py

Co-authored-by: Roman Solomatin <samoed.roman@gmail.com>

---------

Co-authored-by: Roman Solomatin <samoed.roman@gmail.com>

---------

Co-authored-by: Roman Solomatin <samoed.roman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants