Spaces:
vilarin
/
Running on Zero

vilarin commited on
Commit
ac63aaa
1 Parent(s): 40c3357

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -99,6 +99,7 @@ def generate_image(
99
 
100
  if init_image:
101
  image = pipe2(
 
102
  prompt_3=text,
103
  image=init_image,
104
  negative_prompt_3=negative,
@@ -106,10 +107,10 @@ def generate_image(
106
  num_inference_steps=steps,
107
  strength=strength,
108
  generator = generator,
109
- prompt_embeds = None,
110
  )
111
  else:
112
  image = pipe(
 
113
  prompt_3=text,
114
  negative_prompt_3=negative,
115
  width=width,
@@ -117,7 +118,6 @@ def generate_image(
117
  guidance_scale=scale,
118
  num_inference_steps=steps,
119
  generator = generator,
120
- prompt_embeds = None,
121
  )
122
  return image.images[0]
123
 
 
99
 
100
  if init_image:
101
  image = pipe2(
102
+ prompt=text,
103
  prompt_3=text,
104
  image=init_image,
105
  negative_prompt_3=negative,
 
107
  num_inference_steps=steps,
108
  strength=strength,
109
  generator = generator,
 
110
  )
111
  else:
112
  image = pipe(
113
+ prompt=text,
114
  prompt_3=text,
115
  negative_prompt_3=negative,
116
  width=width,
 
118
  guidance_scale=scale,
119
  num_inference_steps=steps,
120
  generator = generator,
 
121
  )
122
  return image.images[0]
123