Spaces:
Runtime error
Runtime error
➖ Remove deprecated gradio.Box() function
Browse files
app.py
CHANGED
@@ -166,34 +166,33 @@ with gr.Blocks(
|
|
166 |
"""
|
167 |
)
|
168 |
with gr.Group():
|
169 |
-
with gr.
|
170 |
-
with gr.
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
)
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
negative
|
182 |
-
|
183 |
-
|
184 |
-
placeholder="Enter a negative prompt"
|
185 |
-
).style(
|
186 |
-
border=(True, False, True, True),
|
187 |
-
rounded=(True, False, False, True),
|
188 |
-
container=False,
|
189 |
-
)
|
190 |
-
generate_button = gr.Button(
|
191 |
-
"Generate image"
|
192 |
).style(
|
193 |
-
|
194 |
-
rounded=(False,
|
195 |
-
|
196 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
gallery = gr.Gallery(
|
198 |
label="Generated images",
|
199 |
show_label=False
|
|
|
166 |
"""
|
167 |
)
|
168 |
with gr.Group():
|
169 |
+
with gr.Row():
|
170 |
+
with gr.Column():
|
171 |
+
prompt = gr.Textbox(
|
172 |
+
label="Enter your prompt",
|
173 |
+
show_label=False,
|
174 |
+
placeholder="Enter your prompt"
|
175 |
+
).style(
|
176 |
+
border=(True, False, True, True),
|
177 |
+
rounded=(True, False, False, True),
|
178 |
+
container=False,
|
179 |
+
)
|
180 |
+
negative = gr.Textbox(
|
181 |
+
label="Enter your negative prompt",
|
182 |
+
show_label=False,
|
183 |
+
placeholder="Enter a negative prompt"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
).style(
|
185 |
+
border=(True, False, True, True),
|
186 |
+
rounded=(True, False, False, True),
|
187 |
+
container=False,
|
188 |
)
|
189 |
+
generate_button = gr.Button(
|
190 |
+
"Generate image"
|
191 |
+
).style(
|
192 |
+
margin=False,
|
193 |
+
rounded=(False, True, True, False),
|
194 |
+
full_width=True,
|
195 |
+
)
|
196 |
gallery = gr.Gallery(
|
197 |
label="Generated images",
|
198 |
show_label=False
|