Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
8346bd0
1
Parent(s):
498de35
Changed output gallery to image
Browse files
app.py
CHANGED
@@ -509,7 +509,7 @@ def blend_details(input_image, relit_image, masked_image):
|
|
509 |
# Save final result
|
510 |
final_image_pil = tensor2pil(final_image)
|
511 |
# final_image_pil.save("output/output_image.png")
|
512 |
-
return
|
513 |
|
514 |
def generate_image(input_img, ai_gen_image, prompt):
|
515 |
|
@@ -536,9 +536,10 @@ def create_ui():
|
|
536 |
run_button = gr.Button(value='Run')
|
537 |
|
538 |
with gr.Column():
|
539 |
-
gallery = gr.Gallery(
|
540 |
-
|
541 |
-
)
|
|
|
542 |
|
543 |
# Run button
|
544 |
run_button.click(
|
|
|
509 |
# Save final result
|
510 |
final_image_pil = tensor2pil(final_image)
|
511 |
# final_image_pil.save("output/output_image.png")
|
512 |
+
return final_image_pil
|
513 |
|
514 |
def generate_image(input_img, ai_gen_image, prompt):
|
515 |
|
|
|
536 |
run_button = gr.Button(value='Run')
|
537 |
|
538 |
with gr.Column():
|
539 |
+
# gallery = gr.Gallery(
|
540 |
+
# label="Generated images", show_label=False, elem_id="gallery"
|
541 |
+
# )
|
542 |
+
output_image = gr.Image(label="Generated Image")
|
543 |
|
544 |
# Run button
|
545 |
run_button.click(
|