Spaces:
Runtime error
Runtime error
Add cache to examples
Browse filesTo avoid waiting and re-processing of examples, I added cache to them.
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()
|