Commit eb42ec7
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>1 parent 227c7b4 commit eb42ec7
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments