Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
src/eval_card_registry/cli.py
CHANGED
|
@@ -568,6 +568,7 @@ def seed(
|
|
| 568 |
# list-valued on canonical_composites.
|
| 569 |
for col in (
|
| 570 |
"tags", "metadata", "parents",
|
|
|
|
| 571 |
"benchmark_ids", "folder_aliases", "composite_keys",
|
| 572 |
"source_configs",
|
| 573 |
):
|
|
|
|
| 568 |
# list-valued on canonical_composites.
|
| 569 |
for col in (
|
| 570 |
"tags", "metadata", "parents",
|
| 571 |
+
"input_modalities", "output_modalities",
|
| 572 |
"benchmark_ids", "folder_aliases", "composite_keys",
|
| 573 |
"source_configs",
|
| 574 |
):
|
src/eval_card_registry/store/schemas.py
CHANGED
|
@@ -61,6 +61,15 @@ _SCHEMAS: dict[str, dict] = {
|
|
| 61 |
# snapshot. Populated automatically by scripts/refresh_from_modelsdev.py
|
| 62 |
# from models.dev. Per-snapshot dates remain in metadata.release_dates.
|
| 63 |
"release_date": pd.StringDtype(),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
"tags": pd.StringDtype(), # JSON-encoded list
|
| 65 |
"metadata": pd.StringDtype(), # JSON-encoded dict
|
| 66 |
"review_status": pd.StringDtype(),
|
|
|
|
| 61 |
# snapshot. Populated automatically by scripts/refresh_from_modelsdev.py
|
| 62 |
# from models.dev. Per-snapshot dates remain in metadata.release_dates.
|
| 63 |
"release_date": pd.StringDtype(),
|
| 64 |
+
# JSON-encoded list of input modality strings (e.g. ["text", "image"]).
|
| 65 |
+
# NULL when unknown. Populated by scripts/refresh_from_modelsdev.py
|
| 66 |
+
# from models.dev's `modalities.input` field. Hand-curated core.yaml
|
| 67 |
+
# entries may set explicitly. Frontend's models_view + the
|
| 68 |
+
# eval_results_view.model_info.modalities STRUCT both consume this.
|
| 69 |
+
"input_modalities": pd.StringDtype(),
|
| 70 |
+
# JSON-encoded list of output modality strings (e.g. ["text"]).
|
| 71 |
+
# Same population path as input_modalities.
|
| 72 |
+
"output_modalities": pd.StringDtype(),
|
| 73 |
"tags": pd.StringDtype(), # JSON-encoded list
|
| 74 |
"metadata": pd.StringDtype(), # JSON-encoded dict
|
| 75 |
"review_status": pd.StringDtype(),
|