Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse filesThis should prevent samples from being generated on startup.
If "cache_examples='lazy'," instead of "cache_examples=False," samples will be cached on first use.
app.py
CHANGED
@@ -338,7 +338,8 @@ with gr.Blocks(css="style.css", theme="NoCrypt/[email protected]") as demo:
|
|
338 |
inputs=prompt,
|
339 |
outputs=[result, gr_metadata],
|
340 |
fn=lambda *args, **kwargs: generate(*args, use_upscaler=True, **kwargs),
|
341 |
-
cache_examples=CACHE_EXAMPLES,
|
|
|
342 |
)
|
343 |
use_upscaler.change(
|
344 |
fn=lambda x: [gr.update(visible=x), gr.update(visible=x)],
|
|
|
338 |
inputs=prompt,
|
339 |
outputs=[result, gr_metadata],
|
340 |
fn=lambda *args, **kwargs: generate(*args, use_upscaler=True, **kwargs),
|
341 |
+
#cache_examples=CACHE_EXAMPLES,
|
342 |
+
cache_examples=False,
|
343 |
)
|
344 |
use_upscaler.change(
|
345 |
fn=lambda x: [gr.update(visible=x), gr.update(visible=x)],
|