karimox commited on
Commit
23da439
·
verified ·
1 Parent(s): d2058b2

fix: board dropdown accepts a stale value instead of killing the Gradio queue

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -23,6 +23,12 @@ ArrayExpress) and ``citation`` is never rendered at all.
23
  Failures are surfaced by who owns them: a bad file tells the submitter exactly
24
  what to fix; an evaluator-side failure says "our side, please retry" and logs
25
  the traceback rather than blaming the submission.
 
 
 
 
 
 
26
  """
27
 
28
  import os
@@ -410,6 +416,7 @@ def build_demo() -> gr.Blocks:
410
  board_sel = gr.Dropdown(
411
  label="Board",
412
  choices=[],
 
413
  info="A slice of the benchmark: one modality, area or task family.",
414
  )
415
  board_head = gr.HTML()
 
23
  Failures are surfaced by who owns them: a bad file tells the submitter exactly
24
  what to fix; an evaluator-side failure says "our side, please retry" and logs
25
  the traceback rather than blaming the submission.
26
+
27
+ The board dropdown takes ``allow_custom_value``: its choices are only filled once
28
+ the registry loads, so a browser holding a value from an earlier version of the
29
+ page -- or any load where the registry is briefly unreachable -- would otherwise
30
+ be refused by Gradio's own preprocessing, before ``by_slug`` gets the chance to
31
+ fall back to the hero board.
32
  """
33
 
34
  import os
 
416
  board_sel = gr.Dropdown(
417
  label="Board",
418
  choices=[],
419
+ allow_custom_value=True,
420
  info="A slice of the benchmark: one modality, area or task family.",
421
  )
422
  board_head = gr.HTML()