Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,26 +10,23 @@ with gr.Blocks() as demo:
|
|
10 |
with gr.Tab("Text-to-Image"):
|
11 |
text_ip = gr.Image(label='IP-Adapter Image')
|
12 |
text_prompt = gr.Textbox(label='Prompt')
|
13 |
-
text_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
|
14 |
text_button = gr.Button("Generate")
|
15 |
with gr.Tab("Image-to-Image"):
|
16 |
image_ip = gr.Image(label='IP-Adapter Image')
|
17 |
image_image = gr.Image(label='Image')
|
18 |
image_prompt = gr.Textbox(label='Prompt')
|
19 |
-
image_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
|
20 |
image_button = gr.Button("Generate")
|
21 |
with gr.Tab("Inpainting"):
|
22 |
inpaint_ip = gr.Image(label='IP-Adapter Image')
|
23 |
inpaint_editor = gr.ImageEditor(label='Image + Mask')
|
24 |
inpaint_prompt = gr.Textbox(label='Prompt')
|
25 |
-
inpaint_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
|
26 |
inpaint_button = gr.Button("Generate")
|
27 |
output_image = gr.Image(label='Result')
|
28 |
-
with gr.Accordion("Advanced", open=False):
|
29 |
-
ip_scale_slider = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale")
|
30 |
neg_prompt = gr.Textbox(label='Negative Prompt', value='ugly, deformed, nsfw')
|
31 |
width_slider = gr.Slider(256, 1024, value=1024, label="Width")
|
32 |
height_slider = gr.Slider(256, 1024, value=1024, label="Height")
|
|
|
33 |
strength_slider = gr.Slider(0.0, 1.0, value=0.7, label="Strength")
|
34 |
guidance_slider = gr.Slider(1.0, 15.0, value=7.5, label="Guidance")
|
35 |
steps_slider = gr.Slider(50, 100, value=75, label="Steps")
|
|
|
10 |
with gr.Tab("Text-to-Image"):
|
11 |
text_ip = gr.Image(label='IP-Adapter Image')
|
12 |
text_prompt = gr.Textbox(label='Prompt')
|
|
|
13 |
text_button = gr.Button("Generate")
|
14 |
with gr.Tab("Image-to-Image"):
|
15 |
image_ip = gr.Image(label='IP-Adapter Image')
|
16 |
image_image = gr.Image(label='Image')
|
17 |
image_prompt = gr.Textbox(label='Prompt')
|
|
|
18 |
image_button = gr.Button("Generate")
|
19 |
with gr.Tab("Inpainting"):
|
20 |
inpaint_ip = gr.Image(label='IP-Adapter Image')
|
21 |
inpaint_editor = gr.ImageEditor(label='Image + Mask')
|
22 |
inpaint_prompt = gr.Textbox(label='Prompt')
|
|
|
23 |
inpaint_button = gr.Button("Generate")
|
24 |
output_image = gr.Image(label='Result')
|
25 |
+
with gr.Accordion("Advanced Settings", open=False):
|
|
|
26 |
neg_prompt = gr.Textbox(label='Negative Prompt', value='ugly, deformed, nsfw')
|
27 |
width_slider = gr.Slider(256, 1024, value=1024, label="Width")
|
28 |
height_slider = gr.Slider(256, 1024, value=1024, label="Height")
|
29 |
+
ip_scale_slider = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale")
|
30 |
strength_slider = gr.Slider(0.0, 1.0, value=0.7, label="Strength")
|
31 |
guidance_slider = gr.Slider(1.0, 15.0, value=7.5, label="Guidance")
|
32 |
steps_slider = gr.Slider(50, 100, value=75, label="Steps")
|