MedGRPO Team
Claude Sonnet 4.5
commited on
Commit
·
73ea6a1
1
Parent(s):
bf7092c
Fix Gradio schema error and deployment configuration
Browse filesFixed 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>
- .gitignore +1 -0
- app.py +1 -1
- 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",
|
| 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
|