Spaces:
Running
Running
updated UI
Browse files
frontend/webui/text_to_image_ui.py
CHANGED
@@ -106,22 +106,7 @@ def get_text_to_image_ui(app_settings: AppSettings) -> None:
|
|
106 |
elem_id="generate_button",
|
107 |
scale=0,
|
108 |
)
|
109 |
-
|
110 |
-
1, 25, value=4, step=1, label="Inference Steps"
|
111 |
-
)
|
112 |
-
image_height = gr.Slider(
|
113 |
-
256, 768, value=512, step=256, label="Image Height"
|
114 |
-
)
|
115 |
-
image_width = gr.Slider(
|
116 |
-
256, 768, value=512, step=256, label="Image Width"
|
117 |
-
)
|
118 |
-
num_images = gr.Slider(
|
119 |
-
1,
|
120 |
-
50,
|
121 |
-
value=1,
|
122 |
-
step=1,
|
123 |
-
label="Number of images to generate",
|
124 |
-
)
|
125 |
with gr.Accordion("Advanced options", open=False):
|
126 |
guidance_scale = gr.Slider(
|
127 |
1.0, 30.0, value=8, step=0.5, label="Guidance Scale"
|
@@ -150,6 +135,22 @@ def get_text_to_image_ui(app_settings: AppSettings) -> None:
|
|
150 |
value=True,
|
151 |
interactive=True,
|
152 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
input_params = [
|
155 |
prompt,
|
|
|
106 |
elem_id="generate_button",
|
107 |
scale=0,
|
108 |
)
|
109 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
with gr.Accordion("Advanced options", open=False):
|
111 |
guidance_scale = gr.Slider(
|
112 |
1.0, 30.0, value=8, step=0.5, label="Guidance Scale"
|
|
|
135 |
value=True,
|
136 |
interactive=True,
|
137 |
)
|
138 |
+
num_inference_steps = gr.Slider(
|
139 |
+
1, 8, value=4, step=1, label="Inference Steps"
|
140 |
+
)
|
141 |
+
image_height = gr.Slider(
|
142 |
+
256, 768, value=512, step=256, label="Image Height"
|
143 |
+
)
|
144 |
+
image_width = gr.Slider(
|
145 |
+
256, 768, value=512, step=256, label="Image Width"
|
146 |
+
)
|
147 |
+
num_images = gr.Slider(
|
148 |
+
1,
|
149 |
+
50,
|
150 |
+
value=1,
|
151 |
+
step=1,
|
152 |
+
label="Number of images to generate",
|
153 |
+
)
|
154 |
|
155 |
input_params = [
|
156 |
prompt,
|