anzorq commited on
Commit
54dd0f4
β€’
1 Parent(s): 9c41a34

Update template/app_advanced.py

Browse files
Files changed (1) hide show
  1. template/app_advanced.py +2 -2
template/app_advanced.py CHANGED
@@ -50,7 +50,7 @@ def txt_to_img(prompt, neg_prompt, guidance, steps, width, height, generator):
50
  height = height,
51
  generator = generator)
52
 
53
- return replace_nsfw_images(result)
54
 
55
  def img_to_img(prompt, neg_prompt, img, strength, guidance, steps, width, height, generator):
56
 
@@ -67,7 +67,7 @@ def img_to_img(prompt, neg_prompt, img, strength, guidance, steps, width, height
67
  height = height,
68
  generator = generator)
69
 
70
- return replace_nsfw_images(result)
71
 
72
  def replace_nsfw_images(results):
73
 
 
50
  height = height,
51
  generator = generator)
52
 
53
+ return result.images[0]#replace_nsfw_images(result)
54
 
55
  def img_to_img(prompt, neg_prompt, img, strength, guidance, steps, width, height, generator):
56
 
 
67
  height = height,
68
  generator = generator)
69
 
70
+ return result.images[0]#replace_nsfw_images(result)
71
 
72
  def replace_nsfw_images(results):
73