Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 164 |
visible=False
|
| 165 |
)
|
| 166 |
|
| 167 |
-
with gr.Row(elem_id="prompt-container")
|
| 168 |
with gr.Column():
|
| 169 |
prompt = gr.Textbox(
|
| 170 |
label="Enter your prompt",
|
|
@@ -172,9 +172,6 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 172 |
max_lines=1,
|
| 173 |
placeholder="Enter your prompt",
|
| 174 |
elem_id="prompt-text-input",
|
| 175 |
-
).style(
|
| 176 |
-
border=(True, False, True, True),
|
| 177 |
-
rounded=(True, False, False, True),
|
| 178 |
container=False,
|
| 179 |
)
|
| 180 |
neg_prompt = gr.Textbox(
|
|
@@ -183,16 +180,9 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 183 |
max_lines=1,
|
| 184 |
placeholder="Enter a negative prompt",
|
| 185 |
elem_id="negative-prompt-text-input",
|
| 186 |
-
).style(
|
| 187 |
-
border=(True, False, True, True),
|
| 188 |
-
rounded=(True, False, False, True),
|
| 189 |
container=False,
|
| 190 |
)
|
| 191 |
-
generate = gr.Button("Generate image")
|
| 192 |
-
margin=False,
|
| 193 |
-
rounded=(False, True, True, False),
|
| 194 |
-
full_width=False,
|
| 195 |
-
)
|
| 196 |
|
| 197 |
with gr.Accordion("Advanced Options", open=False):
|
| 198 |
with gr.Group():
|
|
|
|
| 164 |
visible=False
|
| 165 |
)
|
| 166 |
|
| 167 |
+
with gr.Row(elem_id="prompt-container"):
|
| 168 |
with gr.Column():
|
| 169 |
prompt = gr.Textbox(
|
| 170 |
label="Enter your prompt",
|
|
|
|
| 172 |
max_lines=1,
|
| 173 |
placeholder="Enter your prompt",
|
| 174 |
elem_id="prompt-text-input",
|
|
|
|
|
|
|
|
|
|
| 175 |
container=False,
|
| 176 |
)
|
| 177 |
neg_prompt = gr.Textbox(
|
|
|
|
| 180 |
max_lines=1,
|
| 181 |
placeholder="Enter a negative prompt",
|
| 182 |
elem_id="negative-prompt-text-input",
|
|
|
|
|
|
|
|
|
|
| 183 |
container=False,
|
| 184 |
)
|
| 185 |
+
generate = gr.Button("Generate image", scale=0)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
|
| 187 |
with gr.Accordion("Advanced Options", open=False):
|
| 188 |
with gr.Group():
|