chainyo commited on
Commit
540a4ba
1 Parent(s): c879373

Add cache to examples

Browse files

To avoid waiting and re-processing of examples, I added cache to them.

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -130,7 +130,8 @@ with gr.Blocks() as demo:
130
  ],
131
  ],
132
  inputs=[text, melody, model],
133
- outputs=[output]
 
134
  )
135
 
136
  demo.launch()
 
130
  ],
131
  ],
132
  inputs=[text, melody, model],
133
+ outputs=[output],
134
+ cache_examples=True,
135
  )
136
 
137
  demo.launch()