Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
59e9b1d
1
Parent(s):
e221187
22
Browse files
app.py
CHANGED
|
@@ -166,7 +166,7 @@ def inference(
|
|
| 166 |
control_context_scale=control_context_scale,
|
| 167 |
).images[0]
|
| 168 |
|
| 169 |
-
return output_image, seed
|
| 170 |
|
| 171 |
|
| 172 |
def read_file(path: str) -> str:
|
|
@@ -261,6 +261,11 @@ with gr.Blocks() as demo:
|
|
| 261 |
interactive=False,
|
| 262 |
type="pil",
|
| 263 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
|
| 265 |
gr.Examples(examples=examples, inputs=[edit_dict, prompt])
|
| 266 |
gr.Markdown(read_file("static/footer.md"))
|
|
@@ -283,7 +288,7 @@ with gr.Blocks() as demo:
|
|
| 283 |
guidance_scale,
|
| 284 |
num_inference_steps,
|
| 285 |
],
|
| 286 |
-
outputs=[output_image, seed],
|
| 287 |
)
|
| 288 |
|
| 289 |
if __name__ == "__main__":
|
|
|
|
| 166 |
control_context_scale=control_context_scale,
|
| 167 |
).images[0]
|
| 168 |
|
| 169 |
+
return output_image, seed, control_image
|
| 170 |
|
| 171 |
|
| 172 |
def read_file(path: str) -> str:
|
|
|
|
| 261 |
interactive=False,
|
| 262 |
type="pil",
|
| 263 |
)
|
| 264 |
+
control_image = gr.Image(
|
| 265 |
+
label="Generated Control Image",
|
| 266 |
+
interactive=False,
|
| 267 |
+
type="pil",
|
| 268 |
+
)
|
| 269 |
|
| 270 |
gr.Examples(examples=examples, inputs=[edit_dict, prompt])
|
| 271 |
gr.Markdown(read_file("static/footer.md"))
|
|
|
|
| 288 |
guidance_scale,
|
| 289 |
num_inference_steps,
|
| 290 |
],
|
| 291 |
+
outputs=[output_image, seed, control_image],
|
| 292 |
)
|
| 293 |
|
| 294 |
if __name__ == "__main__":
|