Spaces:
Runtime error
Runtime error
root
commited on
Commit
•
c36042f
1
Parent(s):
ced37a7
Adjust the layout
Browse files
app.py
CHANGED
@@ -263,7 +263,7 @@ if __name__ == "__main__":
|
|
263 |
# show_label=True,
|
264 |
# interactive=True,
|
265 |
# )
|
266 |
-
sample_size = gr.Radio(choices=["1","2","3","4"], value="1", show_label=True, )
|
267 |
with gr.Row(visible=False).style(mobile_collapse=False, equal_height=True):
|
268 |
sr_option = gr.Checkbox(value=False, label="是否使用超分(Whether to use super-resolution)")
|
269 |
|
@@ -326,9 +326,9 @@ if __name__ == "__main__":
|
|
326 |
img2img_btn_mask = gr.Button("Generate", variant="primary", visible=False,
|
327 |
elem_id="img2img_mask_btn")
|
328 |
img2img_btn_editor = gr.Button("Generate", variant="primary", elem_id="img2img_edit_btn")
|
|
|
329 |
with gr.Row().style(equal_height=False):
|
330 |
#with gr.Column():
|
331 |
-
gr.Markdown('#### 输入图像')
|
332 |
img2img_image_mask = gr.Image(
|
333 |
value=sample_img2img,
|
334 |
source="upload",
|
@@ -348,7 +348,7 @@ if __name__ == "__main__":
|
|
348 |
image_mode="RGBA",
|
349 |
elem_id="img2img_editor"
|
350 |
)
|
351 |
-
with gr.Tabs(visible=
|
352 |
with gr.TabItem("编辑设置"):
|
353 |
with gr.Row():
|
354 |
# disable Uncrop for now
|
@@ -376,9 +376,8 @@ if __name__ == "__main__":
|
|
376 |
img2img_painterro_btn = gr.Button("Advanced Editor",visible=False)
|
377 |
# with gr.TabItem("Hints",visible=False):
|
378 |
# img2img_help = gr.Markdown(visible=False, value=uifn.help_text)
|
379 |
-
|
380 |
with gr.Row():
|
381 |
-
gr.Markdown('#### 编辑后的图片')
|
382 |
output_img2img_gallery = gr.Gallery(label="Images", elem_id="img2img_gallery_output").style(
|
383 |
grid=[4, 4, 4])
|
384 |
img2img_job_ui = job_manager.draw_gradio_ui() if job_manager else None
|
|
|
263 |
# show_label=True,
|
264 |
# interactive=True,
|
265 |
# )
|
266 |
+
sample_size = gr.Radio(choices=["1","2","3","4"], value="1", show_label=True, label='生成数量(number)')
|
267 |
with gr.Row(visible=False).style(mobile_collapse=False, equal_height=True):
|
268 |
sr_option = gr.Checkbox(value=False, label="是否使用超分(Whether to use super-resolution)")
|
269 |
|
|
|
326 |
img2img_btn_mask = gr.Button("Generate", variant="primary", visible=False,
|
327 |
elem_id="img2img_mask_btn")
|
328 |
img2img_btn_editor = gr.Button("Generate", variant="primary", elem_id="img2img_edit_btn")
|
329 |
+
gr.Markdown('#### 输入图像')
|
330 |
with gr.Row().style(equal_height=False):
|
331 |
#with gr.Column():
|
|
|
332 |
img2img_image_mask = gr.Image(
|
333 |
value=sample_img2img,
|
334 |
source="upload",
|
|
|
348 |
image_mode="RGBA",
|
349 |
elem_id="img2img_editor"
|
350 |
)
|
351 |
+
with gr.Tabs(visible=False):
|
352 |
with gr.TabItem("编辑设置"):
|
353 |
with gr.Row():
|
354 |
# disable Uncrop for now
|
|
|
376 |
img2img_painterro_btn = gr.Button("Advanced Editor",visible=False)
|
377 |
# with gr.TabItem("Hints",visible=False):
|
378 |
# img2img_help = gr.Markdown(visible=False, value=uifn.help_text)
|
379 |
+
gr.Markdown('#### 编辑后的图片')
|
380 |
with gr.Row():
|
|
|
381 |
output_img2img_gallery = gr.Gallery(label="Images", elem_id="img2img_gallery_output").style(
|
382 |
grid=[4, 4, 4])
|
383 |
img2img_job_ui = job_manager.draw_gradio_ui() if job_manager else None
|