Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -183,14 +183,15 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
183 |
with gr.Accordion("Additional Options", open=False):
|
184 |
use_negative_prompt = gr.Checkbox(
|
185 |
label="Use negative prompt",
|
186 |
-
value=
|
187 |
visible=True
|
188 |
)
|
189 |
negative_prompt = gr.Text(
|
190 |
label="Negative prompt",
|
191 |
max_lines=1,
|
192 |
placeholder="Enter a negative prompt",
|
193 |
-
|
|
|
194 |
)
|
195 |
seed = gr.Slider(
|
196 |
label="Seed",
|
@@ -288,7 +289,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
288 |
inputs=prompt,
|
289 |
outputs=[result, seed_display, generation_time, zip_file],
|
290 |
fn=generate,
|
291 |
-
cache_examples=
|
292 |
)
|
293 |
|
294 |
if __name__ == "__main__":
|
|
|
183 |
with gr.Accordion("Additional Options", open=False):
|
184 |
use_negative_prompt = gr.Checkbox(
|
185 |
label="Use negative prompt",
|
186 |
+
value=True,
|
187 |
visible=True
|
188 |
)
|
189 |
negative_prompt = gr.Text(
|
190 |
label="Negative prompt",
|
191 |
max_lines=1,
|
192 |
placeholder="Enter a negative prompt",
|
193 |
+
value="text, watermark, copyright, blurry, low resolution",
|
194 |
+
visible=True,
|
195 |
)
|
196 |
seed = gr.Slider(
|
197 |
label="Seed",
|
|
|
289 |
inputs=prompt,
|
290 |
outputs=[result, seed_display, generation_time, zip_file],
|
291 |
fn=generate,
|
292 |
+
cache_examples="lazy",
|
293 |
)
|
294 |
|
295 |
if __name__ == "__main__":
|