John6666 commited on
Commit
1a81c9e
1 Parent(s): d25b2e6

Update app.py

Browse files

This should prevent samples from being generated on startup.
If "cache_examples='lazy'," instead of "cache_examples=False," samples will be cached on first use.

Files changed (1) hide show
  1. app.py +2 -1
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)],