Alexander Bagus commited on
Commit
b7f5b01
·
1 Parent(s): 92fdedf
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -168,7 +168,7 @@ def inference(
168
  control_context_scale=control_context_scale,
169
  ).images[0]
170
 
171
- return output_image, seed, input_image
172
 
173
 
174
  def read_file(path: str) -> str:
@@ -263,11 +263,11 @@ with gr.Blocks() as demo:
263
  interactive=False,
264
  type="pil",
265
  )
266
- control_image = gr.Image(
267
- label="Generated Control Image",
268
- interactive=False,
269
- type="pil",
270
- )
271
 
272
  gr.Examples(examples=examples, inputs=[edit_dict, prompt])
273
  gr.Markdown(read_file("static/footer.md"))
@@ -290,7 +290,7 @@ with gr.Blocks() as demo:
290
  # guidance_scale,
291
  num_inference_steps,
292
  ],
293
- outputs=[output_image, seed, control_image],
294
  )
295
 
296
  if __name__ == "__main__":
 
168
  control_context_scale=control_context_scale,
169
  ).images[0]
170
 
171
+ return output_image, seed
172
 
173
 
174
  def read_file(path: str) -> str:
 
263
  interactive=False,
264
  type="pil",
265
  )
266
+ # control_image = gr.Image(
267
+ # label="Generated Control Image",
268
+ # interactive=False,
269
+ # type="pil",
270
+ # )
271
 
272
  gr.Examples(examples=examples, inputs=[edit_dict, prompt])
273
  gr.Markdown(read_file("static/footer.md"))
 
290
  # guidance_scale,
291
  num_inference_steps,
292
  ],
293
+ outputs=[output_image, seed],
294
  )
295
 
296
  if __name__ == "__main__":