Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ with gr.Blocks(css=css) as demo:
|
|
68 |
prompt = gr.Text(
|
69 |
label="Prompt",
|
70 |
show_label=True,
|
71 |
-
lines=
|
72 |
placeholder="Enter your prompt",
|
73 |
container=True,
|
74 |
info='For image variation, leave empty or try a prompt like: "high quality".'
|
@@ -87,6 +87,21 @@ with gr.Blocks(css=css) as demo:
|
|
87 |
value=1.0,
|
88 |
)
|
89 |
result = gr.Image(label="Result", elem_id="result")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
with gr.Accordion("Advanced Settings", open=False):
|
92 |
negative_prompt = gr.Text(
|
@@ -118,21 +133,21 @@ with gr.Blocks(css=css) as demo:
|
|
118 |
step=32,
|
119 |
value=1024,
|
120 |
)
|
121 |
-
with gr.Row():
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
|
137 |
|
138 |
gr.Examples(
|
|
|
68 |
prompt = gr.Text(
|
69 |
label="Prompt",
|
70 |
show_label=True,
|
71 |
+
lines=1,
|
72 |
placeholder="Enter your prompt",
|
73 |
container=True,
|
74 |
info='For image variation, leave empty or try a prompt like: "high quality".'
|
|
|
87 |
value=1.0,
|
88 |
)
|
89 |
result = gr.Image(label="Result", elem_id="result")
|
90 |
+
with gr.Row():
|
91 |
+
width = gr.Slider(
|
92 |
+
label="Width",
|
93 |
+
minimum=256,
|
94 |
+
maximum=2048,
|
95 |
+
step=32,
|
96 |
+
value=1024,
|
97 |
+
)
|
98 |
+
height = gr.Slider(
|
99 |
+
label="Height",
|
100 |
+
minimum=256,
|
101 |
+
maximum=2048,
|
102 |
+
step=32,
|
103 |
+
value=1024,
|
104 |
+
)
|
105 |
|
106 |
with gr.Accordion("Advanced Settings", open=False):
|
107 |
negative_prompt = gr.Text(
|
|
|
133 |
step=32,
|
134 |
value=1024,
|
135 |
)
|
136 |
+
# with gr.Row():
|
137 |
+
# guidance_scale = gr.Slider(
|
138 |
+
# label="Guidance scale",
|
139 |
+
# minimum=0.0,
|
140 |
+
# maximum=10.0,
|
141 |
+
# step=0.1,
|
142 |
+
# value=7.0,
|
143 |
+
# )
|
144 |
+
# num_inference_steps = gr.Slider(
|
145 |
+
# label="Number of inference steps",
|
146 |
+
# minimum=1,
|
147 |
+
# maximum=100,
|
148 |
+
# step=1,
|
149 |
+
# value=25,
|
150 |
+
# )
|
151 |
|
152 |
|
153 |
gr.Examples(
|