Upload api-inference-config.json with huggingface_hub
Browse files- api-inference-config.json +45 -0
api-inference-config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"compute": {
|
| 3 |
+
"task": "text-to-image",
|
| 4 |
+
"framework": "custom",
|
| 5 |
+
"accelerator": "cpu"
|
| 6 |
+
},
|
| 7 |
+
"parameters": {
|
| 8 |
+
"prompt": {
|
| 9 |
+
"type": "string",
|
| 10 |
+
"description": "Text description of the desired output",
|
| 11 |
+
"required": true
|
| 12 |
+
},
|
| 13 |
+
"negative_prompt": {
|
| 14 |
+
"type": "string",
|
| 15 |
+
"description": "Text to avoid in the generation",
|
| 16 |
+
"required": false
|
| 17 |
+
},
|
| 18 |
+
"num_paths": {
|
| 19 |
+
"type": "integer",
|
| 20 |
+
"description": "Number of paths in the SVG",
|
| 21 |
+
"required": false,
|
| 22 |
+
"default": 100
|
| 23 |
+
},
|
| 24 |
+
"guidance_scale": {
|
| 25 |
+
"type": "number",
|
| 26 |
+
"description": "Guidance scale for the diffusion model",
|
| 27 |
+
"required": false,
|
| 28 |
+
"default": 7.5
|
| 29 |
+
},
|
| 30 |
+
"seed": {
|
| 31 |
+
"type": "integer",
|
| 32 |
+
"description": "Random seed for reproducibility",
|
| 33 |
+
"required": false
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"widget": {
|
| 37 |
+
"text": "a cat sitting on a windowsill",
|
| 38 |
+
"examples": [
|
| 39 |
+
"a cat sitting on a windowsill",
|
| 40 |
+
"a beautiful mountain landscape",
|
| 41 |
+
"a portrait of a person with glasses",
|
| 42 |
+
"a sunset over the ocean"
|
| 43 |
+
]
|
| 44 |
+
}
|
| 45 |
+
}
|