demo-curation / config_response.json
tianhaowang's picture
fix error
56b9da8
{
"version": "5.47.2",
"api_prefix": "/gradio_api",
"mode": "blocks",
"app_id": 17329858619706024273,
"dev_mode": false,
"vibe_mode": false,
"analytics_enabled": true,
"components": [
{
"id": 1,
"type": "button",
"props": {
"value": "Sign in with Hugging Face",
"logout_value": "Logout ({})",
"variant": "huggingface",
"size": "lg",
"icon": {
"path": "/usr/local/lib/python3.10/site-packages/gradio/icons/huggingface-logo.svg",
"url": "https://tianhaowang-demo-curation.hf.space/gradio_api/file=/usr/local/lib/python3.10/site-packages/gradio/icons/huggingface-logo.svg",
"size": null,
"orig_name": null,
"mime_type": null,
"is_stream": false,
"meta": {
"_type": "gradio.FileData"
}
},
"visible": true,
"interactive": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"name": "button",
"_selectable": false
},
"skip_api": true,
"component_class_id": "c3637bb80ffe0b4e792a6e348a8a7ffeed5ac4d21660cbd75b8cbf842645c8fe",
"key": null
},
{
"id": 2,
"type": "row",
"props": {
"variant": "default",
"visible": true,
"equal_height": false,
"show_progress": false,
"preserved_by_key": [],
"name": "row"
},
"skip_api": true,
"component_class_id": "724216f2707d8e99d1bf5993a957b41df582b9f858086784b9e93dca5b08e3ce",
"key": null
},
{
"id": 3,
"type": "file",
"props": {
"file_count": "multiple",
"type": "filepath",
"label": "Upload D₀ (.csv/.jsonl/.zip)",
"show_label": true,
"container": true,
"min_width": 160,
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"allow_reordering": false,
"name": "file",
"_selectable": false
},
"skip_api": false,
"component_class_id": "f12bf7256389942af664b7cc37ada7c2c0de13afbc7585f3b57fdc557512251b",
"key": null,
"api_info": {
"$defs": {
"FileData": {
"description": "The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded.\n\nAttributes:\n path: The server file path where the file is stored.\n url: The normalized server URL pointing to the file.\n size: The size of the file in bytes.\n orig_name: The original filename before upload.\n mime_type: The MIME type of the file.\n is_stream: Indicates whether the file is a stream.\n meta: Additional metadata used internally (should not be changed).",
"properties": {
"path": {
"title": "Path",
"type": "string"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mime Type"
},
"is_stream": {
"default": false,
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"$ref": "#/$defs/FileDataMeta"
}
},
"required": [
"path"
],
"title": "FileData",
"type": "object"
},
"FileDataMeta": {
"properties": {
"_type": {
"const": "gradio.FileData",
"title": "Type",
"type": "string"
}
},
"required": [
"_type"
],
"title": "FileDataMeta",
"type": "object"
}
},
"items": {
"$ref": "#/$defs/FileData"
},
"title": "ListFiles",
"type": "array",
"additional_description": null
},
"api_info_as_input": {
"$defs": {
"FileData": {
"description": "The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded.\n\nAttributes:\n path: The server file path where the file is stored.\n url: The normalized server URL pointing to the file.\n size: The size of the file in bytes.\n orig_name: The original filename before upload.\n mime_type: The MIME type of the file.\n is_stream: Indicates whether the file is a stream.\n meta: Additional metadata used internally (should not be changed).",
"properties": {
"path": {
"title": "Path",
"type": "string"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mime Type"
},
"is_stream": {
"default": false,
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"$ref": "#/$defs/FileDataMeta"
}
},
"required": [
"path"
],
"title": "FileData",
"type": "object"
},
"FileDataMeta": {
"properties": {
"_type": {
"const": "gradio.FileData",
"title": "Type",
"type": "string"
}
},
"required": [
"_type"
],
"title": "FileDataMeta",
"type": "object"
}
},
"items": {
"$ref": "#/$defs/FileData"
},
"title": "ListFiles",
"type": "array",
"additional_description": null
},
"api_info_as_output": {
"$defs": {
"FileData": {
"description": "The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded.\n\nAttributes:\n path: The server file path where the file is stored.\n url: The normalized server URL pointing to the file.\n size: The size of the file in bytes.\n orig_name: The original filename before upload.\n mime_type: The MIME type of the file.\n is_stream: Indicates whether the file is a stream.\n meta: Additional metadata used internally (should not be changed).",
"properties": {
"path": {
"title": "Path",
"type": "string"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mime Type"
},
"is_stream": {
"default": false,
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"$ref": "#/$defs/FileDataMeta"
}
},
"required": [
"path"
],
"title": "FileData",
"type": "object"
},
"FileDataMeta": {
"properties": {
"_type": {
"const": "gradio.FileData",
"title": "Type",
"type": "string"
}
},
"required": [
"_type"
],
"title": "FileDataMeta",
"type": "object"
}
},
"items": {
"$ref": "#/$defs/FileData"
},
"title": "ListFiles",
"type": "array",
"additional_description": null
},
"example_inputs": [
{
"path": "https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf",
"meta": {
"_type": "gradio.FileData"
},
"orig_name": "sample_file.pdf",
"url": "https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf"
}
]
},
{
"id": 4,
"type": "textbox",
"props": {
"type": "text",
"lines": 1,
"label": "Hub dataset id (user/dataset)",
"show_label": true,
"container": true,
"min_width": 160,
"visible": true,
"autofocus": false,
"autoscroll": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"rtl": false,
"show_copy_button": false,
"submit_btn": false,
"stop_btn": false,
"name": "textbox",
"_selectable": false
},
"skip_api": false,
"component_class_id": "0ad8e7dd48970890cef0fb44101b5b9b5a57422fa28062cfa5b0de927e78f3dc",
"key": null,
"api_info": {
"type": "string"
},
"api_info_as_input": {
"type": "string"
},
"api_info_as_output": {
"type": "string"
},
"example_inputs": "Hello!!"
},
{
"id": 5,
"type": "form",
"props": {
"scale": 1,
"min_width": 160,
"preserved_by_key": [],
"name": "form"
},
"skip_api": true,
"component_class_id": "ed5cd51f569f3a7624b1709c4e7e50a5a608037f5fb82307671a5cec77e36b71",
"key": null
},
{
"id": 6,
"type": "row",
"props": {
"variant": "default",
"visible": true,
"equal_height": false,
"show_progress": false,
"preserved_by_key": [],
"name": "row"
},
"skip_api": true,
"component_class_id": "724216f2707d8e99d1bf5993a957b41df582b9f858086784b9e93dca5b08e3ce",
"key": null
},
{
"id": 7,
"type": "file",
"props": {
"file_count": "multiple",
"type": "filepath",
"label": "Optional test set upload",
"show_label": true,
"container": true,
"min_width": 160,
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"allow_reordering": false,
"name": "file",
"_selectable": false
},
"skip_api": false,
"component_class_id": "f12bf7256389942af664b7cc37ada7c2c0de13afbc7585f3b57fdc557512251b",
"key": null,
"api_info": {
"$defs": {
"FileData": {
"description": "The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded.\n\nAttributes:\n path: The server file path where the file is stored.\n url: The normalized server URL pointing to the file.\n size: The size of the file in bytes.\n orig_name: The original filename before upload.\n mime_type: The MIME type of the file.\n is_stream: Indicates whether the file is a stream.\n meta: Additional metadata used internally (should not be changed).",
"properties": {
"path": {
"title": "Path",
"type": "string"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mime Type"
},
"is_stream": {
"default": false,
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"$ref": "#/$defs/FileDataMeta"
}
},
"required": [
"path"
],
"title": "FileData",
"type": "object"
},
"FileDataMeta": {
"properties": {
"_type": {
"const": "gradio.FileData",
"title": "Type",
"type": "string"
}
},
"required": [
"_type"
],
"title": "FileDataMeta",
"type": "object"
}
},
"items": {
"$ref": "#/$defs/FileData"
},
"title": "ListFiles",
"type": "array",
"additional_description": null
},
"api_info_as_input": {
"$defs": {
"FileData": {
"description": "The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded.\n\nAttributes:\n path: The server file path where the file is stored.\n url: The normalized server URL pointing to the file.\n size: The size of the file in bytes.\n orig_name: The original filename before upload.\n mime_type: The MIME type of the file.\n is_stream: Indicates whether the file is a stream.\n meta: Additional metadata used internally (should not be changed).",
"properties": {
"path": {
"title": "Path",
"type": "string"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mime Type"
},
"is_stream": {
"default": false,
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"$ref": "#/$defs/FileDataMeta"
}
},
"required": [
"path"
],
"title": "FileData",
"type": "object"
},
"FileDataMeta": {
"properties": {
"_type": {
"const": "gradio.FileData",
"title": "Type",
"type": "string"
}
},
"required": [
"_type"
],
"title": "FileDataMeta",
"type": "object"
}
},
"items": {
"$ref": "#/$defs/FileData"
},
"title": "ListFiles",
"type": "array",
"additional_description": null
},
"api_info_as_output": {
"$defs": {
"FileData": {
"description": "The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded.\n\nAttributes:\n path: The server file path where the file is stored.\n url: The normalized server URL pointing to the file.\n size: The size of the file in bytes.\n orig_name: The original filename before upload.\n mime_type: The MIME type of the file.\n is_stream: Indicates whether the file is a stream.\n meta: Additional metadata used internally (should not be changed).",
"properties": {
"path": {
"title": "Path",
"type": "string"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mime Type"
},
"is_stream": {
"default": false,
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"$ref": "#/$defs/FileDataMeta"
}
},
"required": [
"path"
],
"title": "FileData",
"type": "object"
},
"FileDataMeta": {
"properties": {
"_type": {
"const": "gradio.FileData",
"title": "Type",
"type": "string"
}
},
"required": [
"_type"
],
"title": "FileDataMeta",
"type": "object"
}
},
"items": {
"$ref": "#/$defs/FileData"
},
"title": "ListFiles",
"type": "array",
"additional_description": null
},
"example_inputs": [
{
"path": "https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf",
"meta": {
"_type": "gradio.FileData"
},
"orig_name": "sample_file.pdf",
"url": "https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf"
}
]
},
{
"id": 8,
"type": "textbox",
"props": {
"type": "text",
"lines": 1,
"label": "Test dataset id (user/dataset[:split])",
"show_label": true,
"container": true,
"min_width": 160,
"visible": true,
"autofocus": false,
"autoscroll": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"rtl": false,
"show_copy_button": false,
"submit_btn": false,
"stop_btn": false,
"name": "textbox",
"_selectable": false
},
"skip_api": false,
"component_class_id": "0ad8e7dd48970890cef0fb44101b5b9b5a57422fa28062cfa5b0de927e78f3dc",
"key": null,
"api_info": {
"type": "string"
},
"api_info_as_input": {
"type": "string"
},
"api_info_as_output": {
"type": "string"
},
"example_inputs": "Hello!!"
},
{
"id": 9,
"type": "form",
"props": {
"scale": 1,
"min_width": 160,
"preserved_by_key": [],
"name": "form"
},
"skip_api": true,
"component_class_id": "ed5cd51f569f3a7624b1709c4e7e50a5a608037f5fb82307671a5cec77e36b71",
"key": null
},
{
"id": 10,
"type": "radio",
"props": {
"choices": [
[
"classification",
"classification"
],
[
"qa",
"qa"
],
[
"pretraining",
"pretraining"
]
],
"value": "classification",
"type": "value",
"label": "Task",
"show_label": true,
"container": true,
"min_width": 160,
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"rtl": false,
"name": "radio",
"_selectable": false
},
"skip_api": false,
"component_class_id": "4bae69bfe39df240a64f93e2bc0928f7b57964dc468a947953f7086756ba0425",
"key": null,
"api_info": {
"enum": [
"classification",
"qa",
"pretraining"
],
"title": "Radio",
"type": "string"
},
"api_info_as_input": {
"enum": [
"classification",
"qa",
"pretraining"
],
"title": "Radio",
"type": "string"
},
"api_info_as_output": {
"enum": [
"classification",
"qa",
"pretraining"
],
"title": "Radio",
"type": "string"
},
"example_inputs": "classification"
},
{
"id": 11,
"type": "dropdown",
"props": {
"choices": [
[
"meta-llama/Llama-3.1-8B-Instruct",
"meta-llama/Llama-3.1-8B-Instruct"
]
],
"value": "meta-llama/Llama-3.1-8B-Instruct",
"type": "value",
"allow_custom_value": false,
"filterable": true,
"label": "Model",
"show_label": true,
"container": true,
"min_width": 160,
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"name": "dropdown",
"_selectable": false
},
"skip_api": false,
"component_class_id": "ab4364d7fce4d39b423da06814d2184031a9485af4e94c2e684a84bfb6e53489",
"key": null,
"api_info": {
"type": "string",
"enum": [
"meta-llama/Llama-3.1-8B-Instruct"
]
},
"api_info_as_input": {
"type": "string",
"enum": [
"meta-llama/Llama-3.1-8B-Instruct"
]
},
"api_info_as_output": {
"type": "string",
"enum": [
"meta-llama/Llama-3.1-8B-Instruct"
]
},
"example_inputs": "meta-llama/Llama-3.1-8B-Instruct"
},
{
"id": 12,
"type": "checkboxgroup",
"props": {
"choices": [
[
"loss",
"loss"
],
[
"f1",
"f1"
],
[
"exact_match",
"exact_match"
]
],
"value": [
"f1"
],
"type": "value",
"label": "Metrics",
"show_label": true,
"show_select_all": false,
"container": true,
"min_width": 160,
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"name": "checkboxgroup",
"_selectable": false
},
"skip_api": false,
"component_class_id": "f45cf5e306de16bad4316c4c7cc7cad34108f1779e11fec5ba342aff99d86c44",
"key": null,
"api_info": {
"items": {
"enum": [
"loss",
"f1",
"exact_match"
],
"type": "string"
},
"title": "Checkbox Group",
"type": "array"
},
"api_info_as_input": {
"items": {
"enum": [
"loss",
"f1",
"exact_match"
],
"type": "string"
},
"title": "Checkbox Group",
"type": "array"
},
"api_info_as_output": {
"items": {
"enum": [
"loss",
"f1",
"exact_match"
],
"type": "string"
},
"title": "Checkbox Group",
"type": "array"
},
"example_inputs": [
"loss"
]
},
{
"id": 13,
"type": "checkboxgroup",
"props": {
"choices": [
[
"glue/sst2",
"glue/sst2"
],
[
"ag_news",
"ag_news"
]
],
"value": [],
"type": "value",
"label": "Candidate datasets",
"show_label": true,
"show_select_all": false,
"container": true,
"min_width": 160,
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"name": "checkboxgroup",
"_selectable": false
},
"skip_api": false,
"component_class_id": "f45cf5e306de16bad4316c4c7cc7cad34108f1779e11fec5ba342aff99d86c44",
"key": null,
"api_info": {
"items": {
"enum": [
"glue/sst2",
"ag_news"
],
"type": "string"
},
"title": "Checkbox Group",
"type": "array"
},
"api_info_as_input": {
"items": {
"enum": [
"glue/sst2",
"ag_news"
],
"type": "string"
},
"title": "Checkbox Group",
"type": "array"
},
"api_info_as_output": {
"items": {
"enum": [
"glue/sst2",
"ag_news"
],
"type": "string"
},
"title": "Checkbox Group",
"type": "array"
},
"example_inputs": [
"glue/sst2"
]
},
{
"id": 14,
"type": "checkboxgroup",
"props": {
"choices": [
[
"5000",
"5000"
],
[
"10000",
"10000"
],
[
"20000",
"20000"
]
],
"value": [
"5000",
"10000"
],
"type": "value",
"label": "Mixture sizes",
"show_label": true,
"show_select_all": false,
"container": true,
"min_width": 160,
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"name": "checkboxgroup",
"_selectable": false
},
"skip_api": false,
"component_class_id": "f45cf5e306de16bad4316c4c7cc7cad34108f1779e11fec5ba342aff99d86c44",
"key": null,
"api_info": {
"items": {
"enum": [
"5000",
"10000",
"20000"
],
"type": "string"
},
"title": "Checkbox Group",
"type": "array"
},
"api_info_as_input": {
"items": {
"enum": [
"5000",
"10000",
"20000"
],
"type": "string"
},
"title": "Checkbox Group",
"type": "array"
},
"api_info_as_output": {
"items": {
"enum": [
"5000",
"10000",
"20000"
],
"type": "string"
},
"title": "Checkbox Group",
"type": "array"
},
"example_inputs": [
"5000"
]
},
{
"id": 15,
"type": "number",
"props": {
"value": 200000,
"label": "Target size for prediction",
"show_label": true,
"container": true,
"min_width": 160,
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"step": 1,
"name": "number",
"_selectable": false
},
"skip_api": false,
"component_class_id": "f96fbf30da8a3ba918a6d7bbc104f25cf82ed1b6e7da4fc2d86d810f99a2d1bf",
"key": null,
"api_info": {
"type": "number"
},
"api_info_as_input": {
"type": "number"
},
"api_info_as_output": {
"type": "number"
},
"example_inputs": 3
},
{
"id": 16,
"type": "button",
"props": {
"value": "Run experiments",
"variant": "secondary",
"size": "lg",
"visible": true,
"interactive": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"name": "button",
"_selectable": false
},
"skip_api": true,
"component_class_id": "51bd485a5354bcd93c72c66428b42770f71e60d8f9bb8345f6ce8a6787cd1c8f",
"key": null
},
{
"id": 17,
"type": "button",
"props": {
"value": "Refresh status",
"variant": "secondary",
"size": "lg",
"visible": true,
"interactive": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"name": "button",
"_selectable": false
},
"skip_api": true,
"component_class_id": "51bd485a5354bcd93c72c66428b42770f71e60d8f9bb8345f6ce8a6787cd1c8f",
"key": null
},
{
"id": 18,
"type": "state",
"props": {
"time_to_live": null,
"delete_callback": "<function default_delete_callback at 0x7f82c53f6b00>",
"name": "state",
"_selectable": false
},
"skip_api": true,
"component_class_id": "cc8e63b98ccbe28ef7537c6464d92ca548dc3365db7aba0fdf7fc59510b04636",
"key": null
},
{
"id": 19,
"type": "dataframe",
"props": {
"value": {
"headers": [
"id",
"dataset",
"status",
"job url",
"artifacts"
],
"data": [],
"metadata": null
},
"headers": [
"id",
"dataset",
"status",
"job url",
"artifacts"
],
"row_count": [
1,
"dynamic"
],
"col_count": [
5,
"dynamic"
],
"datatype": [
"str",
"str",
"str",
"str",
"str"
],
"type": "pandas",
"latex_delimiters": [
{
"left": "$$",
"right": "$$",
"display": true
}
],
"show_label": true,
"max_height": 500,
"min_width": 160,
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"wrap": true,
"line_breaks": true,
"column_widths": [],
"show_fullscreen_button": false,
"show_copy_button": false,
"show_row_numbers": false,
"show_search": "none",
"static_columns": [],
"name": "dataframe",
"_selectable": false
},
"skip_api": false,
"component_class_id": "5117fc8def3b9b45b6e23e59fd0fa3bbd071188ee220fdf87caf108a229aef30",
"key": null,
"api_info": {
"properties": {
"headers": {
"items": {},
"title": "Headers",
"type": "array"
},
"data": {
"items": {
"items": {},
"type": "array"
},
"title": "Data",
"type": "array"
},
"metadata": {
"anyOf": [
{
"additionalProperties": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
]
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata"
}
},
"required": [
"headers",
"data"
],
"title": "DataframeData",
"type": "object",
"additional_description": null
},
"api_info_as_input": {
"properties": {
"headers": {
"items": {},
"title": "Headers",
"type": "array"
},
"data": {
"items": {
"items": {},
"type": "array"
},
"title": "Data",
"type": "array"
},
"metadata": {
"anyOf": [
{
"additionalProperties": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
]
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata"
}
},
"required": [
"headers",
"data"
],
"title": "DataframeData",
"type": "object",
"additional_description": null
},
"api_info_as_output": {
"properties": {
"headers": {
"items": {},
"title": "Headers",
"type": "array"
},
"data": {
"items": {
"items": {},
"type": "array"
},
"title": "Data",
"type": "array"
},
"metadata": {
"anyOf": [
{
"additionalProperties": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
]
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata"
}
},
"required": [
"headers",
"data"
],
"title": "DataframeData",
"type": "object",
"additional_description": null
},
"example_inputs": {
"headers": [
"a",
"b"
],
"data": [
[
"foo",
"bar"
]
]
}
},
{
"id": 20,
"type": "markdown",
"props": {
"value": "Monitor jobs and open artifacts in the configured results repo once complete.",
"show_label": false,
"rtl": false,
"latex_delimiters": [
{
"left": "$$",
"right": "$$",
"display": true
}
],
"visible": true,
"elem_classes": [],
"preserved_by_key": [
"value"
],
"sanitize_html": true,
"line_breaks": false,
"header_links": false,
"show_copy_button": false,
"container": false,
"padding": false,
"name": "markdown",
"_selectable": false
},
"skip_api": false,
"component_class_id": "927e99ba5dda4bcd0dfe596d4d0cecdc2e0b41e7e95071a05f96ae3971390ed6",
"key": null,
"api_info": {
"type": "string"
},
"api_info_as_input": {
"type": "string"
},
"api_info_as_output": {
"type": "string"
},
"example_inputs": "# Hello!"
},
{
"id": 21,
"type": "form",
"props": {
"scale": 0,
"min_width": 0,
"preserved_by_key": [],
"name": "form"
},
"skip_api": true,
"component_class_id": "ed5cd51f569f3a7624b1709c4e7e50a5a608037f5fb82307671a5cec77e36b71",
"key": null
}
],
"css": "",
"connect_heartbeat": true,
"js": "",
"head": "",
"title": "Data Curation Workbench",
"space_id": "tianhaowang/demo-curation",
"enable_queue": true,
"show_error": false,
"show_api": true,
"is_colab": false,
"max_file_size": null,
"stylesheets": [
"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap"
],
"theme": "default",
"protocol": "sse_v3",
"body_css": {
"body_background_fill": "white",
"body_text_color": "#27272a",
"body_background_fill_dark": "#0f0f11",
"body_text_color_dark": "#f4f4f5"
},
"fill_height": false,
"fill_width": false,
"theme_hash": "2fa39f6df94156f7ef9d84370dbb2657d672827c75f082ac995879c32290c5ca",
"pwa": true,
"pages": [
[
"",
"Home",
true
]
],
"page": {
"": {
"layout": {
"id": 0,
"children": [
{
"id": 1
},
{
"id": 2,
"children": [
{
"id": 3
},
{
"id": 5,
"children": [
{
"id": 4
}
]
}
]
},
{
"id": 6,
"children": [
{
"id": 7
},
{
"id": 9,
"children": [
{
"id": 8
}
]
}
]
},
{
"id": 21,
"children": [
{
"id": 10
},
{
"id": 11
},
{
"id": 12
},
{
"id": 13
},
{
"id": 14
},
{
"id": 15
}
]
},
{
"id": 16
},
{
"id": 17
},
{
"id": 18
},
{
"id": 19
},
{
"id": 20
}
]
},
"components": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21
],
"dependencies": [
0,
1,
2,
3,
4,
5
]
}
},
"mcp_server": false,
"i18n_translations": null,
"dependencies": [
{
"id": 0,
"targets": [
[
1,
"click"
]
],
"inputs": [
1
],
"outputs": [],
"backend_fn": false,
"js": "\n(buttonValue) => {\n uri = buttonValue === \"Sign in with Hugging Face\" ? '/login/huggingface?_target_url=/' : '/logout?_target_url=/';\n window.parent?.postMessage({ type: \"SET_SCROLLING\", enabled: true }, \"*\");\n setTimeout(() => {\n window.location.assign(uri + window.location.search);\n }, 500);\n}\n",
"queue": false,
"api_name": "js_fn",
"api_description": null,
"scroll_to_output": false,
"show_progress": "full",
"show_progress_on": null,
"batch": false,
"max_batch_size": 4,
"cancels": [],
"types": {
"generator": false,
"cancel": false
},
"collects_event_data": false,
"trigger_after": null,
"trigger_only_on_success": false,
"trigger_only_on_failure": false,
"trigger_mode": "once",
"show_api": false,
"rendered_in": null,
"render_id": null,
"connection": "sse",
"time_limit": null,
"stream_every": 0.5,
"like_user_message": false,
"event_specific_args": null,
"js_implementation": null
},
{
"id": 1,
"targets": [
[
10,
"change"
]
],
"inputs": [
10
],
"outputs": [
12,
13
],
"backend_fn": true,
"js": null,
"queue": true,
"api_name": "on_task_change",
"api_description": null,
"scroll_to_output": false,
"show_progress": "full",
"show_progress_on": null,
"batch": false,
"max_batch_size": 4,
"cancels": [],
"types": {
"generator": false,
"cancel": false
},
"collects_event_data": false,
"trigger_after": null,
"trigger_only_on_success": false,
"trigger_only_on_failure": false,
"trigger_mode": "always_last",
"show_api": true,
"rendered_in": null,
"render_id": null,
"connection": "sse",
"time_limit": null,
"stream_every": 0.5,
"like_user_message": false,
"event_specific_args": null,
"js_implementation": null
},
{
"id": 2,
"targets": [
[
16,
"click"
]
],
"inputs": [
3,
4,
10,
11,
12,
13,
14,
15,
7,
8
],
"outputs": [
18
],
"backend_fn": true,
"js": null,
"queue": true,
"api_name": "submit_experiments",
"api_description": null,
"scroll_to_output": false,
"show_progress": "full",
"show_progress_on": null,
"batch": false,
"max_batch_size": 4,
"cancels": [],
"types": {
"generator": false,
"cancel": false
},
"collects_event_data": false,
"trigger_after": null,
"trigger_only_on_success": false,
"trigger_only_on_failure": false,
"trigger_mode": "once",
"show_api": true,
"rendered_in": null,
"render_id": null,
"connection": "sse",
"time_limit": null,
"stream_every": 0.5,
"like_user_message": false,
"event_specific_args": null,
"js_implementation": null
},
{
"id": 3,
"targets": [
[
17,
"click"
]
],
"inputs": [
18
],
"outputs": [
18
],
"backend_fn": true,
"js": null,
"queue": true,
"api_name": "poll_jobs",
"api_description": null,
"scroll_to_output": false,
"show_progress": "full",
"show_progress_on": null,
"batch": false,
"max_batch_size": 4,
"cancels": [],
"types": {
"generator": false,
"cancel": false
},
"collects_event_data": false,
"trigger_after": null,
"trigger_only_on_success": false,
"trigger_only_on_failure": false,
"trigger_mode": "once",
"show_api": true,
"rendered_in": null,
"render_id": null,
"connection": "sse",
"time_limit": null,
"stream_every": 0.5,
"like_user_message": false,
"event_specific_args": null,
"js_implementation": null
},
{
"id": 4,
"targets": [
[
18,
"change"
]
],
"inputs": [
18
],
"outputs": [
19
],
"backend_fn": true,
"js": null,
"queue": true,
"api_name": "render_table",
"api_description": null,
"scroll_to_output": false,
"show_progress": "full",
"show_progress_on": null,
"batch": false,
"max_batch_size": 4,
"cancels": [],
"types": {
"generator": false,
"cancel": false
},
"collects_event_data": false,
"trigger_after": null,
"trigger_only_on_success": false,
"trigger_only_on_failure": false,
"trigger_mode": "always_last",
"show_api": true,
"rendered_in": null,
"render_id": null,
"connection": "sse",
"time_limit": null,
"stream_every": 0.5,
"like_user_message": false,
"event_specific_args": null,
"js_implementation": null
},
{
"id": 5,
"targets": [
[
null,
"load"
]
],
"inputs": [],
"outputs": [
1
],
"backend_fn": true,
"js": null,
"queue": true,
"api_name": "_check_login_status",
"api_description": null,
"scroll_to_output": false,
"show_progress": "full",
"show_progress_on": null,
"batch": false,
"max_batch_size": 4,
"cancels": [],
"types": {
"generator": false,
"cancel": false
},
"collects_event_data": false,
"trigger_after": null,
"trigger_only_on_success": false,
"trigger_only_on_failure": false,
"trigger_mode": "once",
"show_api": true,
"rendered_in": null,
"render_id": null,
"connection": "sse",
"time_limit": null,
"stream_every": 0.5,
"like_user_message": false,
"event_specific_args": null,
"js_implementation": null
}
],
"layout": {
"id": 0,
"children": [
{
"id": 1
},
{
"id": 2,
"children": [
{
"id": 3
},
{
"id": 5,
"children": [
{
"id": 4
}
]
}
]
},
{
"id": 6,
"children": [
{
"id": 7
},
{
"id": 9,
"children": [
{
"id": 8
}
]
}
]
},
{
"id": 21,
"children": [
{
"id": 10
},
{
"id": 11
},
{
"id": 12
},
{
"id": 13
},
{
"id": 14
},
{
"id": 15
}
]
},
{
"id": 16
},
{
"id": 17
},
{
"id": 18
},
{
"id": 19
},
{
"id": 20
}
]
},
"username": null,
"root": "https://tianhaowang-demo-curation.hf.space"
}