JV A commited on
Commit
74f03eb
·
1 Parent(s): 28f74e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -32,8 +32,8 @@ def generate_image(prompt, negative_prompt, scheduler, steps, width, height, res
32
  "width": width,
33
  "height": height,
34
  "clip_skip": 1,
35
- "loras": [{"name": "", "strength": 1.0}],
36
- "embeddings": [{"name": "", "strength": 1.0}],
37
  "vae": "vae-ft-mse-840000-ema-pruned.ckpt",
38
  "restore_faces": restore_faces,
39
  "fr_model": "CodeFormer",
@@ -53,9 +53,16 @@ def generate_image(prompt, negative_prompt, scheduler, steps, width, height, res
53
  "controlnet_weight": 1,
54
  "controlnet_guidance_start": 0,
55
  "controlnet_guidance_end": 1,
56
- "controlnet_ref_img_url": "",
 
 
 
 
 
 
57
  }
58
 
 
59
  # Send the request
60
  response = requests.post(apiUrl, headers=headers, data=json.dumps(body), verify=False)
61
 
 
32
  "width": width,
33
  "height": height,
34
  "clip_skip": 1,
35
+ "loras": [{"name": "biggergirls_128", "strength": 1.0}],
36
+ "embeddings": [{"name": "awaitingtongue", "strength": 1.0}],
37
  "vae": "vae-ft-mse-840000-ema-pruned.ckpt",
38
  "restore_faces": restore_faces,
39
  "fr_model": "CodeFormer",
 
53
  "controlnet_weight": 1,
54
  "controlnet_guidance_start": 0,
55
  "controlnet_guidance_end": 1,
56
+ "controlnet_ref_img_url": "https://upload.wikimedia.org/wikipedia/commons/d/d1/Image_not_available.png",
57
+ "controlnet_lowvram": False,
58
+ "controlnet_mask": [],
59
+ "controlnet_processor_res": 512,
60
+ "controlnet_resize_mode": "Scale to Fit (Inner Fit)",
61
+ "controlnet_threshold_a": 100,
62
+ "controlnet_threshold_b": 200,
63
  }
64
 
65
+
66
  # Send the request
67
  response = requests.post(apiUrl, headers=headers, data=json.dumps(body), verify=False)
68