Spaces:
Runtime error
Runtime error
jiawi-ren
commited on
Commit
•
0feaa66
1
Parent(s):
5b5ae3f
enable cache and max queue size
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ if __name__ == "__main__":
|
|
83 |
examples=examples_full, # NOTE: elements must match inputs list!
|
84 |
inputs=[image_block],
|
85 |
outputs=[image_block],
|
86 |
-
cache_examples=
|
87 |
label='Examples (click one of the images below to start)',
|
88 |
examples_per_page=40
|
89 |
)
|
@@ -104,4 +104,6 @@ if __name__ == "__main__":
|
|
104 |
obj3d_stage1]).success(
|
105 |
optimize_stage_2, inputs=[elevation_slider], outputs=[obj3d])
|
106 |
|
107 |
-
demo.launch(enable_queue=True)
|
|
|
|
|
|
83 |
examples=examples_full, # NOTE: elements must match inputs list!
|
84 |
inputs=[image_block],
|
85 |
outputs=[image_block],
|
86 |
+
cache_examples=True,
|
87 |
label='Examples (click one of the images below to start)',
|
88 |
examples_per_page=40
|
89 |
)
|
|
|
104 |
obj3d_stage1]).success(
|
105 |
optimize_stage_2, inputs=[elevation_slider], outputs=[obj3d])
|
106 |
|
107 |
+
# demo.launch(enable_queue=True)
|
108 |
+
demo.queue(max_size=9) # <-- Sets up a queue with default parameters
|
109 |
+
demo.launch()
|