bsure-api / api.json
“mohansree14”
Deploy Bsure API with correct structure
af1d8cd
Raw History Blame Contribute Delete
90.3 kB
Invalid JSON:Unexpected token '�', "��Conn"... is not valid JSON
��Connecting to FitDiT...
Loaded as API: https://boyuanjiang-fitdit.hf.space ���
Connected!
Connected!
Client.predict() Usage Info
---------------------------
Named API endpoints: 2
- predict(vton_img, category, offset_top, offset_bottom, offset_left, offset_right, api_name="/generate_mask") -> (masked_vton_img, pose_image)
Parameters:
- [Image] vton_img: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict()) (required) (For input, either path or url must be provided. For output, path is always provided.)
- [Dropdown] category: Literal['Upper-body', 'Lower-body', 'Dresses'] (not required, defaults to: Upper-body)
- [Slider] offset_top: float (not required, defaults to: 0)
- [Slider] offset_bottom: float (not required, defaults to: 0)
- [Slider] offset_left: float (not required, defaults to: 0)
- [Slider] offset_right: float (not required, defaults to: 0)
Returns:
- [Imageeditor] masked_vton_img: dict(background: filepath | None, layers: list[filepath], composite: filepath | None, id: str | None)
- [Image] pose_image: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict())
- predict(vton_img, garm_img, pre_mask, pose_image, n_steps, image_scale, seed, num_images_per_prompt, resolution, api_name="/process") -> output
Parameters:
- [Image] vton_img: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict()) (required) (For input, either path or url must be provided. For output, path is always provided.)
- [Image] garm_img: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict()) (required) (For input, either path or url must be provided. For output, path is always provided.)
- [Imageeditor] pre_mask: dict(background: filepath | None, layers: list[filepath], composite: filepath | None, id: str | None) (required)
- [Image] pose_image: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict()) (required) (For input, either path or url must be provided. For output, path is always provided.)
- [Slider] n_steps: float (not required, defaults to: 20)
- [Slider] image_scale: float (not required, defaults to: 2)
- [Slider] seed: float (not required, defaults to: -1)
- [Slider] num_images_per_prompt: float (not required, defaults to: 1)
- [Dropdown] resolution: Literal['768x1024', '1152x1536', '1536x2048'] (not required, defaults to: 768x1024)
Returns:
- [Gallery] output: list[dict(image: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict()), caption: str | None) | dict(video: filepath, caption: str | None)]
{
"named_endpoints": {
"/generate_mask": {
"parameters": [
{
"label": "Model",
"parameter_name": "vton_img",
"parameter_has_default": false,
"parameter_default": null,
"type": {
"properties": {
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to a local file",
"title": "Path"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Publicly available url or base64 encoded image",
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Size of image in bytes",
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Original filename",
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "mime type of image",
"title": "Mime Type"
},
"is_stream": {
"default": false,
"description": "Can always be set to False",
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"default": {
"_type": "gradio.FileData"
},
"title": "Meta",
"type": "object"
}
},
"title": "ImageData",
"type": "object",
"additional_description": "For input, either path or url must be provided. For output, path is always provided."
},
"python_type": {
"type": "dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict())",
"description": "For input, either path or url must be provided. For output, path is always provided."
},
"component": "Image",
"example_input": {
"path": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png",
"meta": {
"_type": "gradio.FileData"
},
"orig_name": "bus.png",
"url": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
}
},
{
"label": "Garment category",
"parameter_name": "category",
"parameter_has_default": true,
"parameter_default": "Upper-body",
"type": {
"type": "string",
"enum": [
"Upper-body",
"Lower-body",
"Dresses"
]
},
"python_type": {
"type": "Literal['Upper-body', 'Lower-body', 'Dresses']",
"description": ""
},
"component": "Dropdown",
"example_input": "Upper-body"
},
{
"label": "mask offset top",
"parameter_name": "offset_top",
"parameter_has_default": true,
"parameter_default": 0,
"type": {
"type": "number",
"description": "numeric value between -200 and 200"
},
"python_type": {
"type": "float",
"description": ""
},
"component": "Slider",
"example_input": -200
},
{
"label": "mask offset bottom",
"parameter_name": "offset_bottom",
"parameter_has_default": true,
"parameter_default": 0,
"type": {
"type": "number",
"description": "numeric value between -200 and 200"
},
"python_type": {
"type": "float",
"description": ""
},
"component": "Slider",
"example_input": -200
},
{
"label": "mask offset left",
"parameter_name": "offset_left",
"parameter_has_default": true,
"parameter_default": 0,
"type": {
"type": "number",
"description": "numeric value between -200 and 200"
},
"python_type": {
"type": "float",
"description": ""
},
"component": "Slider",
"example_input": -200
},
{
"label": "mask offset right",
"parameter_name": "offset_right",
"parameter_has_default": true,
"parameter_default": 0,
"type": {
"type": "number",
"description": "numeric value between -200 and 200"
},
"python_type": {
"type": "float",
"description": ""
},
"component": "Slider",
"example_input": -200
}
],
"returns": [
{
"label": "masked_vton_img",
"type": {
"$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": {
"default": {
"_type": "gradio.FileData"
},
"title": "Meta",
"type": "object"
}
},
"required": [
"path"
],
"title": "FileData",
"type": "object"
}
},
"properties": {
"background": {
"anyOf": [
{
"$ref": "#/$defs/FileData"
},
{
"type": "null"
}
],
"default": null
},
"layers": {
"default": [],
"items": {
"$ref": "#/$defs/FileData"
},
"title": "Layers",
"type": "array"
},
"composite": {
"anyOf": [
{
"$ref": "#/$defs/FileData"
},
{
"type": "null"
}
],
"default": null
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
}
},
"title": "EditorData",
"type": "object",
"additional_description": null
},
"python_type": {
"type": "dict(background: filepath | None, layers: list[filepath], composite: filepath | None, id: str | None)",
"description": ""
},
"component": "Imageeditor"
},
{
"label": "pose_image",
"type": {
"properties": {
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to a local file",
"title": "Path"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Publicly available url or base64 encoded image",
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Size of image in bytes",
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Original filename",
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "mime type of image",
"title": "Mime Type"
},
"is_stream": {
"default": false,
"description": "Can always be set to False",
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"default": {
"_type": "gradio.FileData"
},
"title": "Meta",
"type": "object"
}
},
"title": "ImageData",
"type": "object",
"additional_description": "For input, either path or url must be provided. For output, path is always provided."
},
"python_type": {
"type": "dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict())",
"description": ""
},
"component": "Image"
}
]
},
"/process": {
"parameters": [
{
"label": "Model",
"parameter_name": "vton_img",
"parameter_has_default": false,
"parameter_default": null,
"type": {
"properties": {
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to a local file",
"title": "Path"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Publicly available url or base64 encoded image",
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Size of image in bytes",
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Original filename",
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "mime type of image",
"title": "Mime Type"
},
"is_stream": {
"default": false,
"description": "Can always be set to False",
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"default": {
"_type": "gradio.FileData"
},
"title": "Meta",
"type": "object"
}
},
"title": "ImageData",
"type": "object",
"additional_description": "For input, either path or url must be provided. For output, path is always provided."
},
"python_type": {
"type": "dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict())",
"description": "For input, either path or url must be provided. For output, path is always provided."
},
"component": "Image",
"example_input": {
"path": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png",
"meta": {
"_type": "gradio.FileData"
},
"orig_name": "bus.png",
"url": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
}
},
{
"label": "Garment",
"parameter_name": "garm_img",
"parameter_has_default": false,
"parameter_default": null,
"type": {
"properties": {
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to a local file",
"title": "Path"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Publicly available url or base64 encoded image",
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Size of image in bytes",
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Original filename",
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "mime type of image",
"title": "Mime Type"
},
"is_stream": {
"default": false,
"description": "Can always be set to False",
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"default": {
"_type": "gradio.FileData"
},
"title": "Meta",
"type": "object"
}
},
"title": "ImageData",
"type": "object",
"additional_description": "For input, either path or url must be provided. For output, path is always provided."
},
"python_type": {
"type": "dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict())",
"description": "For input, either path or url must be provided. For output, path is always provided."
},
"component": "Image",
"example_input": {
"path": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png",
"meta": {
"_type": "gradio.FileData"
},
"orig_name": "bus.png",
"url": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
}
},
{
"label": "masked_vton_img",
"parameter_name": "pre_mask",
"parameter_has_default": false,
"parameter_default": null,
"type": {
"$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": {
"default": {
"_type": "gradio.FileData"
},
"title": "Meta",
"type": "object"
}
},
"required": [
"path"
],
"title": "FileData",
"type": "object"
}
},
"properties": {
"background": {
"anyOf": [
{
"$ref": "#/$defs/FileData"
},
{
"type": "null"
}
],
"default": null
},
"layers": {
"default": [],
"items": {
"$ref": "#/$defs/FileData"
},
"title": "Layers",
"type": "array"
},
"composite": {
"anyOf": [
{
"$ref": "#/$defs/FileData"
},
{
"type": "null"
}
],
"default": null
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
}
},
"title": "EditorData",
"type": "object",
"additional_description": null
},
"python_type": {
"type": "dict(background: filepath | None, layers: list[filepath], composite: filepath | None, id: str | None)",
"description": null
},
"component": "Imageeditor",
"example_input": {
"background": {
"path": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png",
"meta": {
"_type": "gradio.FileData"
},
"orig_name": "bus.png",
"url": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
},
"layers": [],
"composite": null
}
},
{
"label": "pose_image",
"parameter_name": "pose_image",
"parameter_has_default": false,
"parameter_default": null,
"type": {
"properties": {
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to a local file",
"title": "Path"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Publicly available url or base64 encoded image",
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Size of image in bytes",
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Original filename",
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "mime type of image",
"title": "Mime Type"
},
"is_stream": {
"default": false,
"description": "Can always be set to False",
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"default": {
"_type": "gradio.FileData"
},
"title": "Meta",
"type": "object"
}
},
"title": "ImageData",
"type": "object",
"additional_description": "For input, either path or url must be provided. For output, path is always provided."
},
"python_type": {
"type": "dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict())",
"description": "For input, either path or url must be provided. For output, path is always provided."
},
"component": "Image",
"example_input": {
"path": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png",
"meta": {
"_type": "gradio.FileData"
},
"orig_name": "bus.png",
"url": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
}
},
{
"label": "Steps",
"parameter_name": "n_steps",
"parameter_has_default": true,
"parameter_default": 20,
"type": {
"type": "number",
"description": "numeric value between 15 and 30"
},
"python_type": {
"type": "float",
"description": ""
},
"component": "Slider",
"example_input": 15
},
{
"label": "Guidance scale",
"parameter_name": "image_scale",
"parameter_has_default": true,
"parameter_default": 2,
"type": {
"type": "number",
"description": "numeric value between 1.0 and 5.0"
},
"python_type": {
"type": "float",
"description": ""
},
"component": "Slider",
"example_input": 1.0
},
{
"label": "Seed",
"parameter_name": "seed",
"parameter_has_default": true,
"parameter_default": -1,
"type": {
"type": "number",
"description": "numeric value between -1 and 2147483647"
},
"python_type": {
"type": "float",
"description": ""
},
"component": "Slider",
"example_input": -1
},
{
"label": "num_images",
"parameter_name": "num_images_per_prompt",
"parameter_has_default": true,
"parameter_default": 1,
"type": {
"type": "number",
"description": "numeric value between 1 and 4"
},
"python_type": {
"type": "float",
"description": ""
},
"component": "Slider",
"example_input": 1
},
{
"label": "Try-on resolution",
"parameter_name": "resolution",
"parameter_has_default": true,
"parameter_default": "768x1024",
"type": {
"type": "string",
"enum": [
"768x1024",
"1152x1536",
"1536x2048"
]
},
"python_type": {
"type": "Literal['768x1024', '1152x1536', '1536x2048']",
"description": ""
},
"component": "Dropdown",
"example_input": "768x1024"
}
],
"returns": [
{
"label": "Output",
"type": {
"$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": {
"default": {
"_type": "gradio.FileData"
},
"title": "Meta",
"type": "object"
}
},
"required": [
"path"
],
"title": "FileData",
"type": "object"
},
"GalleryImage": {
"properties": {
"image": {
"$ref": "#/$defs/ImageData"
},
"caption": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Caption"
}
},
"required": [
"image"
],
"title": "GalleryImage",
"type": "object"
},
"GalleryVideo": {
"properties": {
"video": {
"$ref": "#/$defs/FileData"
},
"caption": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Caption"
}
},
"required": [
"video"
],
"title": "GalleryVideo",
"type": "object"
},
"ImageData": {
"description": "For input, either path or url must be provided. For output, path is always provided.",
"properties": {
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Path to a local file",
"title": "Path"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Publicly available url or base64 encoded image",
"title": "Url"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Size of image in bytes",
"title": "Size"
},
"orig_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Original filename",
"title": "Orig Name"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "mime type of image",
"title": "Mime Type"
},
"is_stream": {
"default": false,
"description": "Can always be set to False",
"title": "Is Stream",
"type": "boolean"
},
"meta": {
"default": {
"_type": "gradio.FileData"
},
"title": "Meta",
"type": "object"
}
},
"title": "ImageData",
"type": "object"
}
},
"items": {
"anyOf": [
{
"$ref": "#/$defs/GalleryImage"
},
{
"$ref": "#/$defs/GalleryVideo"
}
]
},
"title": "GalleryData",
"type": "array",
"additional_description": null
},
"python_type": {
"type": "list[dict(image: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict()), caption: str | None) | dict(video: filepath, caption: str | None)]",
"description": ""
},
"component": "Gallery"
}
]
}
},
"unnamed_endpoints": {}
}