Spaces:
Running
on
Zero
Running
on
Zero
Men1scus
commited on
Commit
·
4fab0c9
1
Parent(s):
66217ed
Refactor input image and result gallery components for improved layout
Browse files
app.py
CHANGED
|
@@ -407,7 +407,7 @@ with block:
|
|
| 407 |
gr.Markdown(Intro)
|
| 408 |
with gr.Row():
|
| 409 |
with gr.Column():
|
| 410 |
-
input_image = gr.Image(
|
| 411 |
user_prompt = gr.Textbox(label="User Prompt", value="")
|
| 412 |
|
| 413 |
# Only show model selection if load_both_models is True
|
|
@@ -442,7 +442,7 @@ with block:
|
|
| 442 |
scale_factor = gr.Number(label="SR Scale", value=4)
|
| 443 |
gr.Examples(examples=exaple_images, inputs=[input_image])
|
| 444 |
with gr.Column():
|
| 445 |
-
result_gallery = gr.Gallery(label="Output", show_label=False, elem_id="gallery"
|
| 446 |
with gr.Row():
|
| 447 |
run_llava_button = gr.Button(value="Run LLAVA", label="Run LLAVA")
|
| 448 |
run_sr_button = gr.Button(value="Run DiT4SR", label="Run DiT4SR")
|
|
|
|
| 407 |
gr.Markdown(Intro)
|
| 408 |
with gr.Row():
|
| 409 |
with gr.Column():
|
| 410 |
+
input_image = gr.Image(type="pil")
|
| 411 |
user_prompt = gr.Textbox(label="User Prompt", value="")
|
| 412 |
|
| 413 |
# Only show model selection if load_both_models is True
|
|
|
|
| 442 |
scale_factor = gr.Number(label="SR Scale", value=4)
|
| 443 |
gr.Examples(examples=exaple_images, inputs=[input_image])
|
| 444 |
with gr.Column():
|
| 445 |
+
result_gallery = gr.Gallery(label="Output", show_label=False, elem_id="gallery", columns=1)
|
| 446 |
with gr.Row():
|
| 447 |
run_llava_button = gr.Button(value="Run LLAVA", label="Run LLAVA")
|
| 448 |
run_sr_button = gr.Button(value="Run DiT4SR", label="Run DiT4SR")
|