Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
30a52e1
1
Parent(s):
a1c2ce2
Update app.py
Browse files
app.py
CHANGED
@@ -257,25 +257,24 @@ with block:
|
|
257 |
"""
|
258 |
)
|
259 |
with gr.Group():
|
260 |
-
with gr.
|
261 |
-
with gr.
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
negative
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
btn = gr.Button("Generate image")
|
279 |
|
280 |
gallery = gr.Gallery(
|
281 |
label="Generated images", show_label=False, elem_id="gallery"
|
|
|
257 |
"""
|
258 |
)
|
259 |
with gr.Group():
|
260 |
+
with gr.Row(elem_id="prompt-container"):
|
261 |
+
with gr.Column(scale=3):
|
262 |
+
text = gr.Textbox(
|
263 |
+
label="Enter your prompt",
|
264 |
+
show_label=False,
|
265 |
+
max_lines=1,
|
266 |
+
placeholder="Enter your prompt",
|
267 |
+
elem_id="prompt-text-input",
|
268 |
+
)
|
269 |
+
negative = gr.Textbox(
|
270 |
+
label="Enter your negative prompt",
|
271 |
+
show_label=False,
|
272 |
+
max_lines=1,
|
273 |
+
placeholder="Enter a negative prompt",
|
274 |
+
elem_id="negative-prompt-text-input",
|
275 |
+
)
|
276 |
+
with gr.Column(scale=1):
|
277 |
+
btn = gr.Button("Generate image")
|
|
|
278 |
|
279 |
gallery = gr.Gallery(
|
280 |
label="Generated images", show_label=False, elem_id="gallery"
|