Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,6 @@ 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 |
-
with gr.Accordion("Negative Prompt"):
|
14 |
-
text_neg_prompt = gr.Textbox(label='Negative Prompt')
|
15 |
text_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
|
16 |
text_button = gr.Button("Generate")
|
17 |
with gr.Tab("Image-to-Image"):
|
@@ -27,5 +25,14 @@ with gr.Blocks() as demo:
|
|
27 |
inpaint_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
|
28 |
inpaint_button = gr.Button("Generate")
|
29 |
output_image = gr.Image(label='Result')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
demo.launch()
|
|
|
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"):
|
|
|
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")
|
36 |
+
|
37 |
|
38 |
demo.launch()
|