Rooni commited on
Commit
851f478
1 Parent(s): 63b54b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -73,7 +73,10 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
73
  "steps": steps,
74
  "cfg_scale": cfg_scale,
75
  "seed": seed if seed != -1 else random.randint(1, 1000000000),
76
- "size": [width, height]
 
 
 
77
  }
78
 
79
  image_bytes = requests.post(API_URL, headers=headers, json=payload).content
 
73
  "steps": steps,
74
  "cfg_scale": cfg_scale,
75
  "seed": seed if seed != -1 else random.randint(1, 1000000000),
76
+ "size": {
77
+ "width": width,
78
+ "height": height
79
+ }
80
  }
81
 
82
  image_bytes = requests.post(API_URL, headers=headers, json=payload).content