Spaces:
Build error
Build error
Commit
·
2ec94e7
1
Parent(s):
a2a6837
Try to prevent timeout by not caching examples
Browse filesI'm curious why the space is timing out now.
Can we try to not cache examples? I'm not familiar with the mechanics of your space but is it possible it takes longer than 30 minutes to run the inference on all the examples?
app.py
CHANGED
@@ -73,7 +73,7 @@ def main():
|
|
73 |
|
74 |
gr.Markdown("## Examples")
|
75 |
gr.Examples(fn=generate, inputs=inputs, outputs=[video_result, model_demo, model_file],
|
76 |
-
examples=[defaults], cache_examples=
|
77 |
return ui
|
78 |
|
79 |
ui = main()
|
|
|
73 |
|
74 |
gr.Markdown("## Examples")
|
75 |
gr.Examples(fn=generate, inputs=inputs, outputs=[video_result, model_demo, model_file],
|
76 |
+
examples=[defaults], cache_examples=False, examples_per_page=1)
|
77 |
return ui
|
78 |
|
79 |
ui = main()
|