Spaces:
Running
on
Zero
Running
on
Zero
adamelliotfields
commited on
Remove prompt background
Browse files
demo.css
CHANGED
@@ -54,6 +54,13 @@
|
|
54 |
margin-top: 12px;
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
#random-seed > button {
|
58 |
margin-right: 8px;
|
59 |
}
|
|
|
54 |
margin-top: 12px;
|
55 |
}
|
56 |
|
57 |
+
#prompt {
|
58 |
+
background-color: var(--bg);
|
59 |
+
}
|
60 |
+
.dark #prompt {
|
61 |
+
background-color: var(--background-fill-primary);
|
62 |
+
}
|
63 |
+
|
64 |
#random-seed > button {
|
65 |
margin-right: 8px;
|
66 |
}
|
demo.py
CHANGED
@@ -77,21 +77,19 @@ with gr.Blocks(
|
|
77 |
interactive=False,
|
78 |
elem_id="gallery",
|
79 |
)
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
)
|
90 |
-
generate_btn = gr.Button("Generate", variant="primary", elem_classes=[])
|
91 |
|
92 |
with gr.Accordion(
|
93 |
label="Menu",
|
94 |
-
open=
|
95 |
elem_id="menu",
|
96 |
elem_classes=["accordion"],
|
97 |
):
|
@@ -193,6 +191,7 @@ with gr.Blocks(
|
|
193 |
generate_btn.click(
|
194 |
generate_btn_click,
|
195 |
api_name="generate",
|
|
|
196 |
outputs=[output_images],
|
197 |
inputs=[
|
198 |
prompt,
|
|
|
77 |
interactive=False,
|
78 |
elem_id="gallery",
|
79 |
)
|
80 |
+
prompt = gr.Textbox(
|
81 |
+
label="Prompt",
|
82 |
+
show_label=False,
|
83 |
+
lines=2,
|
84 |
+
placeholder="corgi, at the beach, cute",
|
85 |
+
value=None,
|
86 |
+
elem_id="prompt",
|
87 |
+
)
|
88 |
+
generate_btn = gr.Button("Generate", variant="primary", elem_classes=[])
|
|
|
|
|
89 |
|
90 |
with gr.Accordion(
|
91 |
label="Menu",
|
92 |
+
open=False,
|
93 |
elem_id="menu",
|
94 |
elem_classes=["accordion"],
|
95 |
):
|
|
|
191 |
generate_btn.click(
|
192 |
generate_btn_click,
|
193 |
api_name="generate",
|
194 |
+
concurrency_limit=5,
|
195 |
outputs=[output_images],
|
196 |
inputs=[
|
197 |
prompt,
|