not-lain commited on
Commit
4242b7c
1 Parent(s): 9cae843

cache examples

Browse files

this is useful even when space is full allowing anyone to at least try out the examples

Files changed (1) hide show
  1. demos/musicgen_app.py +2 -1
demos/musicgen_app.py CHANGED
@@ -333,7 +333,8 @@ def ui_full(launch_kwargs):
333
  ],
334
  ],
335
  inputs=[text, melody, model, decoder],
336
- outputs=[output]
 
337
  )
338
  gr.Markdown(
339
  """
 
333
  ],
334
  ],
335
  inputs=[text, melody, model, decoder],
336
+ outputs=[output],
337
+ cache_examples=True
338
  )
339
  gr.Markdown(
340
  """