Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -308,7 +308,7 @@ def run_process(
|
|
308 |
# Build final instructions & call twice -> 2 final images
|
309 |
instruction = build_multi_change_instruction(r1, final_text1, r2, final_text2, r3, final_text3)
|
310 |
final_imgs = change_text_in_image_two_times(_random_image, instruction)
|
311 |
-
# Return only the 2 final images
|
312 |
return [final_imgs[0], final_imgs[1]]
|
313 |
|
314 |
#######################################
|
@@ -359,7 +359,8 @@ with gr.Blocks(title="Eevery Text Imaginator: FLUX") as demo:
|
|
359 |
|
360 |
with gr.Row():
|
361 |
with gr.Column():
|
362 |
-
|
|
|
363 |
prompt_input = gr.Textbox(
|
364 |
lines=3,
|
365 |
label="Prompt (Korean or English)",
|
@@ -397,7 +398,6 @@ with gr.Blocks(title="Eevery Text Imaginator: FLUX") as demo:
|
|
397 |
final_image_output1 = gr.Image(label="Final Image #1", type="pil")
|
398 |
final_image_output2 = gr.Image(label="Final Image #2", type="pil")
|
399 |
|
400 |
-
# We only display the 2 final images, not the initial random image
|
401 |
run_btn.click(
|
402 |
fn=run_process,
|
403 |
inputs=[
|
|
|
308 |
# Build final instructions & call twice -> 2 final images
|
309 |
instruction = build_multi_change_instruction(r1, final_text1, r2, final_text2, r3, final_text3)
|
310 |
final_imgs = change_text_in_image_two_times(_random_image, instruction)
|
311 |
+
# Return only the 2 final images
|
312 |
return [final_imgs[0], final_imgs[1]]
|
313 |
|
314 |
#######################################
|
|
|
359 |
|
360 |
with gr.Row():
|
361 |
with gr.Column():
|
362 |
+
# Instead of gr.Box(), we can just group them or leave them as is
|
363 |
+
with gr.Group():
|
364 |
prompt_input = gr.Textbox(
|
365 |
lines=3,
|
366 |
label="Prompt (Korean or English)",
|
|
|
398 |
final_image_output1 = gr.Image(label="Final Image #1", type="pil")
|
399 |
final_image_output2 = gr.Image(label="Final Image #2", type="pil")
|
400 |
|
|
|
401 |
run_btn.click(
|
402 |
fn=run_process,
|
403 |
inputs=[
|