Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
cd3ac93
1
Parent(s):
9040294
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def control_ui():
|
|
48 |
height = gr.Slider(label="Height", value=1024, minimum=64, maximum=2048, step=64)
|
49 |
with gr.Column():
|
50 |
with gr.Accordion('风格迁移', open=False):
|
51 |
-
ref_image = gr.Image(label="上传图片", value=None,
|
52 |
info_extract = gr.Slider(label='参考信息提取', value=1, minimum=0, maximum=1, step=0.1)
|
53 |
ref_str = gr.Slider(label='参考强度', value=0.6, minimum=0, maximum=1, step=0.1)
|
54 |
reuse_img_vibe = gr.Button(value='使用上一次生成的图片')
|
@@ -56,7 +56,7 @@ def control_ui():
|
|
56 |
with gr.Row():
|
57 |
use_inp = gr.Checkbox(label='启用', value=False)
|
58 |
overlay = gr.Checkbox(label='覆盖原图', value=True)
|
59 |
-
inp_img = gr.
|
60 |
inp_str = gr.Slider(label='重绘强度', value=0.7, minimum=0, maximum=0.99, step=0.01)
|
61 |
reuse_img_inp = gr.Button(value='使用上一次生成的图片')
|
62 |
with gr.Row():
|
@@ -128,7 +128,7 @@ def util_ui():
|
|
128 |
with gr.Blocks(analytics_enabled=False) as page:
|
129 |
with gr.Row(equal_height=False):
|
130 |
with gr.Column(variant='panel'):
|
131 |
-
image = gr.Image(label="Source",
|
132 |
with gr.Column(variant='panel'):
|
133 |
info = gr.HTML()
|
134 |
items = gr.JSON(value=None, visible=False)
|
|
|
48 |
height = gr.Slider(label="Height", value=1024, minimum=64, maximum=2048, step=64)
|
49 |
with gr.Column():
|
50 |
with gr.Accordion('风格迁移', open=False):
|
51 |
+
ref_image = gr.Image(label="上传图片", value=None, interactive=True, type="pil")
|
52 |
info_extract = gr.Slider(label='参考信息提取', value=1, minimum=0, maximum=1, step=0.1)
|
53 |
ref_str = gr.Slider(label='参考强度', value=0.6, minimum=0, maximum=1, step=0.1)
|
54 |
reuse_img_vibe = gr.Button(value='使用上一次生成的图片')
|
|
|
56 |
with gr.Row():
|
57 |
use_inp = gr.Checkbox(label='启用', value=False)
|
58 |
overlay = gr.Checkbox(label='覆盖原图', value=True)
|
59 |
+
inp_img = gr.Image(label="上传图片", value=None, interactive=True, type="pil", tool="sketch")
|
60 |
inp_str = gr.Slider(label='重绘强度', value=0.7, minimum=0, maximum=0.99, step=0.01)
|
61 |
reuse_img_inp = gr.Button(value='使用上一次生成的图片')
|
62 |
with gr.Row():
|
|
|
128 |
with gr.Blocks(analytics_enabled=False) as page:
|
129 |
with gr.Row(equal_height=False):
|
130 |
with gr.Column(variant='panel'):
|
131 |
+
image = gr.Image(label="Source", interactive=True, type="pil")
|
132 |
with gr.Column(variant='panel'):
|
133 |
info = gr.HTML()
|
134 |
items = gr.JSON(value=None, visible=False)
|