MedGRPO Team Claude Sonnet 4.5 commited on
Commit
73ea6a1
·
1 Parent(s): bf7092c

Fix Gradio schema error and deployment configuration

Browse files

Fixed critical bug from HuggingFace leaderboard template that caused TypeError during Gradio schema validation.

Changes:
- src/display/utils.py: Fixed EvalQueueColumn.weight_type parameter from "Original" (string) to True (bool)
The ColumnContent class expects (name, type, displayed_by_default) where displayed_by_default must be bool
- app.py: Added share=True and server_name="0.0.0.0" to launch() for HuggingFace Space deployment
- .gitignore: Added .gradio/ directory

This fixes the error: "TypeError: argument of type 'bool' is not iterable"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

Files changed (3) hide show
  1. .gitignore +1 -0
  2. app.py +1 -1
  3. src/display/utils.py +1 -1
.gitignore CHANGED
@@ -11,3 +11,4 @@ eval-results/
11
  eval-queue-bk/
12
  eval-results-bk/
13
  logs/
 
 
11
  eval-queue-bk/
12
  eval-results-bk/
13
  logs/
14
+ .gradio/
app.py CHANGED
@@ -201,4 +201,4 @@ with demo:
201
  scheduler = BackgroundScheduler()
202
  scheduler.add_job(restart_space, "interval", seconds=1800)
203
  scheduler.start()
204
- demo.queue(default_concurrency_limit=40).launch()
 
201
  scheduler = BackgroundScheduler()
202
  scheduler.add_job(restart_space, "interval", seconds=1800)
203
  scheduler.start()
204
+ demo.queue(default_concurrency_limit=40).launch(share=True, server_name="0.0.0.0")
src/display/utils.py CHANGED
@@ -50,7 +50,7 @@ class EvalQueueColumn: # Queue column
50
  revision = ColumnContent("revision", "str", True)
51
  private = ColumnContent("private", "bool", True)
52
  precision = ColumnContent("precision", "str", True)
53
- weight_type = ColumnContent("weight_type", "str", "Original")
54
  status = ColumnContent("status", "str", True)
55
 
56
  ## All the model information that we might need
 
50
  revision = ColumnContent("revision", "str", True)
51
  private = ColumnContent("private", "bool", True)
52
  precision = ColumnContent("precision", "str", True)
53
+ weight_type = ColumnContent("weight_type", "str", True)
54
  status = ColumnContent("status", "str", True)
55
 
56
  ## All the model information that we might need