Spaces:
Running
on
Zero
Running
on
Zero
latest gradio changes
Browse files
app.py
CHANGED
@@ -145,19 +145,11 @@ with gr.Blocks() as demo:
|
|
145 |
label="Please provide the width",
|
146 |
value="512",
|
147 |
max_lines=1,
|
148 |
-
).style(
|
149 |
-
border=(True, False, True, True),
|
150 |
-
rounded=(True, False, False, True),
|
151 |
-
container=False,
|
152 |
)
|
153 |
height_inp = gr.Textbox(
|
154 |
label="Please provide the height",
|
155 |
max_lines=1,
|
156 |
value="512",
|
157 |
-
).style(
|
158 |
-
border=(True, False, True, True),
|
159 |
-
rounded=(True, False, False, True),
|
160 |
-
container=False,
|
161 |
)
|
162 |
|
163 |
fixed_res = gr.Dropdown(
|
@@ -180,7 +172,7 @@ with gr.Blocks() as demo:
|
|
180 |
guidance_scale,
|
181 |
width_inp,
|
182 |
height_inp,
|
183 |
-
fixed_res
|
184 |
],
|
185 |
outputs=gallery,
|
186 |
)
|
@@ -193,7 +185,7 @@ with gr.Blocks() as demo:
|
|
193 |
guidance_scale,
|
194 |
width_inp,
|
195 |
height_inp,
|
196 |
-
fixed_res
|
197 |
],
|
198 |
outputs=gallery,
|
199 |
)
|
@@ -206,7 +198,7 @@ with gr.Blocks() as demo:
|
|
206 |
guidance_scale,
|
207 |
width_inp,
|
208 |
height_inp,
|
209 |
-
fixed_res
|
210 |
],
|
211 |
outputs=gallery,
|
212 |
)
|
|
|
145 |
label="Please provide the width",
|
146 |
value="512",
|
147 |
max_lines=1,
|
|
|
|
|
|
|
|
|
148 |
)
|
149 |
height_inp = gr.Textbox(
|
150 |
label="Please provide the height",
|
151 |
max_lines=1,
|
152 |
value="512",
|
|
|
|
|
|
|
|
|
153 |
)
|
154 |
|
155 |
fixed_res = gr.Dropdown(
|
|
|
172 |
guidance_scale,
|
173 |
width_inp,
|
174 |
height_inp,
|
175 |
+
fixed_res,
|
176 |
],
|
177 |
outputs=gallery,
|
178 |
)
|
|
|
185 |
guidance_scale,
|
186 |
width_inp,
|
187 |
height_inp,
|
188 |
+
fixed_res,
|
189 |
],
|
190 |
outputs=gallery,
|
191 |
)
|
|
|
198 |
guidance_scale,
|
199 |
width_inp,
|
200 |
height_inp,
|
201 |
+
fixed_res,
|
202 |
],
|
203 |
outputs=gallery,
|
204 |
)
|