jree423 commited on
Commit
e809d8c
·
verified ·
1 Parent(s): d2ca0be

Update API inference configuration

Browse files
Files changed (1) hide show
  1. api-inference-config.json +3 -43
api-inference-config.json CHANGED
@@ -1,45 +1,5 @@
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
  }
 
1
  {
2
+ "task": "text-to-image",
3
+ "framework": "custom",
4
+ "use_dockerfile": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  }