Spaces:
Running
Running
刘宇轩
commited on
Commit
·
92cdc12
1
Parent(s):
a7edb0c
webui adjust
Browse files
app.py
CHANGED
@@ -321,19 +321,21 @@ with gr.Blocks().queue() as demo:
|
|
321 |
image = gr.Image(label="original_image", type="pil", height=480)
|
322 |
image_mask = gr.Image(label="image_mask", type="pil", height=480)
|
323 |
with gr.Row():
|
324 |
-
prompt = gr.Textbox(value="", label="text prompt")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
with gr.Row():
|
326 |
mode = gr.Radio(choices=["normal", "uniform-lit"], value='normal', label="uniform-lit mode will use double time", type='value')
|
327 |
seed = gr.Number(value=12345, label="random seed", precision=0)
|
328 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=20, step=1)
|
329 |
button = gr.Button("generate")
|
330 |
-
|
331 |
-
with gr.Row():
|
332 |
-
example_quick_subjects = gr.Dataset(samples=quick_subjects, label='Subject Quick List', samples_per_page=1000, components=[prompt])
|
333 |
-
with gr.Row():
|
334 |
-
example_quick_prompts = gr.Dataset(samples=quick_prompts, label='Lighting Quick List', samples_per_page=1000, components=[prompt])
|
335 |
-
with gr.Row():
|
336 |
-
example_quick_content_prompts = gr.Dataset(samples=quick_content_prompts, label='Content Quick List', samples_per_page=1000, components=[prompt])
|
337 |
with gr.Column():
|
338 |
relighting_image = gr.Image(label="relighted_image", type="pil", height=480)
|
339 |
|
|
|
321 |
image = gr.Image(label="original_image", type="pil", height=480)
|
322 |
image_mask = gr.Image(label="image_mask", type="pil", height=480)
|
323 |
with gr.Row():
|
324 |
+
prompt = gr.Textbox(value="", label="text prompt")
|
325 |
+
|
326 |
+
with gr.Row():
|
327 |
+
example_quick_subjects = gr.Dataset(samples=quick_subjects, label='Subject Quick Prompt List. Click to choose a quick subject description', samples_per_page=1000, components=[prompt])
|
328 |
+
with gr.Row():
|
329 |
+
example_quick_prompts = gr.Dataset(samples=quick_prompts, label='Lighting Quick Prompt List. Click to choose a quick lighting description', samples_per_page=1000, components=[prompt])
|
330 |
+
with gr.Row():
|
331 |
+
example_quick_content_prompts = gr.Dataset(samples=quick_content_prompts, label='Content Quick Prompt List. Click to choose a quick content description', samples_per_page=1000, components=[prompt])
|
332 |
+
|
333 |
with gr.Row():
|
334 |
mode = gr.Radio(choices=["normal", "uniform-lit"], value='normal', label="uniform-lit mode will use double time", type='value')
|
335 |
seed = gr.Number(value=12345, label="random seed", precision=0)
|
336 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=20, step=1)
|
337 |
button = gr.Button("generate")
|
338 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
with gr.Column():
|
340 |
relighting_image = gr.Image(label="relighted_image", type="pil", height=480)
|
341 |
|