craftgamesnetwork commited on
Commit
a4479ef
·
verified ·
1 Parent(s): 25c4beb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -29
app.py CHANGED
@@ -138,35 +138,6 @@ def generate(
138
  generator=generator,
139
  ).images[0]
140
  return image
141
- elif use_img2img:
142
- images = pipe(
143
- prompt=prompt,
144
- image=init_image,
145
- strength=strength_img2img,
146
- negative_prompt=negative_prompt,
147
- prompt_2=prompt_2,
148
- negative_prompt_2=negative_prompt_2,
149
- width=width,
150
- height=height,
151
- guidance_scale=guidance_scale_base,
152
- num_inference_steps=num_inference_steps_base,
153
- generator=generator,
154
- output_type="pil",
155
- ).images[0]
156
- return images
157
- else:
158
- return pipe(
159
- prompt=prompt,
160
- negative_prompt=negative_prompt,
161
- prompt_2=prompt_2,
162
- negative_prompt_2=negative_prompt_2,
163
- width=width,
164
- height=height,
165
- guidance_scale=guidance_scale_base,
166
- num_inference_steps=num_inference_steps_base,
167
- generator=generator,
168
- output_type="pil",
169
- ).images[0]
170
 
171
  with gr.Blocks(theme=gr.themes.Soft(), css="style.css") as demo:
172
  gr.HTML(
 
138
  generator=generator,
139
  ).images[0]
140
  return image
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
 
142
  with gr.Blocks(theme=gr.themes.Soft(), css="style.css") as demo:
143
  gr.HTML(