diffsketcher / api-inference-config.json
jree423's picture
Upload api-inference-config.json with huggingface_hub
17471ed verified
raw
history blame
1.08 kB
{
"compute": {
"task": "text-to-image",
"framework": "custom",
"accelerator": "cpu"
},
"parameters": {
"prompt": {
"type": "string",
"description": "Text description of the desired output",
"required": true
},
"negative_prompt": {
"type": "string",
"description": "Text to avoid in the generation",
"required": false
},
"num_paths": {
"type": "integer",
"description": "Number of paths in the SVG",
"required": false,
"default": 100
},
"guidance_scale": {
"type": "number",
"description": "Guidance scale for the diffusion model",
"required": false,
"default": 7.5
},
"seed": {
"type": "integer",
"description": "Random seed for reproducibility",
"required": false
}
},
"widget": {
"text": "a cat sitting on a windowsill",
"examples": [
"a cat sitting on a windowsill",
"a beautiful mountain landscape",
"a portrait of a person with glasses",
"a sunset over the ocean"
]
}
}