Spaces:
Runtime error
Runtime error
fix a bug
Browse files
app.py
CHANGED
@@ -197,6 +197,7 @@ with gr.Blocks() as demo:
|
|
197 |
fn=generator.generate_mesh,
|
198 |
inputs=[block_prompt, cache_image_base64, cache_task_uuid],
|
199 |
outputs=[cache_raw_image, cache_task_uuid, fake3d],
|
|
|
200 |
).success(
|
201 |
fn=do_nothing,
|
202 |
js=change_button_name,
|
@@ -229,6 +230,7 @@ with gr.Blocks() as demo:
|
|
229 |
fn=generator.generate_mesh,
|
230 |
inputs=[block_prompt, cache_image_base64, cache_task_uuid],
|
231 |
outputs=[cache_raw_image, cache_task_uuid, fake3d],
|
|
|
232 |
).then(
|
233 |
fn=do_nothing,
|
234 |
js=change_button_name,
|
@@ -261,4 +263,5 @@ with gr.Blocks() as demo:
|
|
261 |
|
262 |
|
263 |
if __name__ == "__main__":
|
|
|
264 |
demo.launch(show_api=False, show_error=True)
|
|
|
197 |
fn=generator.generate_mesh,
|
198 |
inputs=[block_prompt, cache_image_base64, cache_task_uuid],
|
199 |
outputs=[cache_raw_image, cache_task_uuid, fake3d],
|
200 |
+
queue=True
|
201 |
).success(
|
202 |
fn=do_nothing,
|
203 |
js=change_button_name,
|
|
|
230 |
fn=generator.generate_mesh,
|
231 |
inputs=[block_prompt, cache_image_base64, cache_task_uuid],
|
232 |
outputs=[cache_raw_image, cache_task_uuid, fake3d],
|
233 |
+
queue=True
|
234 |
).then(
|
235 |
fn=do_nothing,
|
236 |
js=change_button_name,
|
|
|
263 |
|
264 |
|
265 |
if __name__ == "__main__":
|
266 |
+
demo.queue()
|
267 |
demo.launch(show_api=False, show_error=True)
|