Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ dashscope.api_key = DASHSCOPE_API_KEY
|
|
15 |
KEEP_SUCCESS_TASK = 3600 * 10
|
16 |
KEEP_RUNING_TASK = 3600 * 1
|
17 |
# the total running task number in 1800 seconds
|
18 |
-
LIMIT_RUNING_TASK =
|
19 |
-
LIMIT_HISTORY_RUNING_TASK =
|
20 |
|
21 |
task_status = {}
|
22 |
|
@@ -233,6 +233,7 @@ with gr.Blocks() as demo:
|
|
233 |
The current experience for Wan2.1 is extremely popular, leading to significant queue congestion. We recommend using the following free channel for your experience.
|
234 |
<a href="https://wanxiang.aliyun-inc.com/wanxiang/creation">Wan Web</a>
|
235 |
</div>
|
|
|
236 |
""")
|
237 |
t2v_task_id = gr.State(value="")
|
238 |
i2v_task_id = gr.State(value="")
|
@@ -338,13 +339,13 @@ with gr.Blocks() as demo:
|
|
338 |
run_t2v_button.click(
|
339 |
fn=t2v_generation_async,
|
340 |
inputs=[txt2vid_prompt, resolution, watermark_wan, seed],
|
341 |
-
outputs=[t2v_task_id, status, run_t2v_button, t2v_refresh_status],
|
342 |
)
|
343 |
|
344 |
run_i2v_button.click(
|
345 |
fn=i2v_generation_async,
|
346 |
inputs=[img2vid_prompt, img2vid_image, watermark_wan, seed],
|
347 |
-
outputs=[i2v_task_id, status, run_i2v_button, i2v_refresh_status],
|
348 |
)
|
349 |
|
350 |
def status_refresh(task_id, task, status):
|
|
|
15 |
KEEP_SUCCESS_TASK = 3600 * 10
|
16 |
KEEP_RUNING_TASK = 3600 * 1
|
17 |
# the total running task number in 1800 seconds
|
18 |
+
LIMIT_RUNING_TASK = 2
|
19 |
+
LIMIT_HISTORY_RUNING_TASK = 4
|
20 |
|
21 |
task_status = {}
|
22 |
|
|
|
233 |
The current experience for Wan2.1 is extremely popular, leading to significant queue congestion. We recommend using the following free channel for your experience.
|
234 |
<a href="https://wanxiang.aliyun-inc.com/wanxiang/creation">Wan Web</a>
|
235 |
</div>
|
236 |
+
|
237 |
""")
|
238 |
t2v_task_id = gr.State(value="")
|
239 |
i2v_task_id = gr.State(value="")
|
|
|
339 |
run_t2v_button.click(
|
340 |
fn=t2v_generation_async,
|
341 |
inputs=[txt2vid_prompt, resolution, watermark_wan, seed],
|
342 |
+
outputs=[t2v_task_id, status, run_t2v_button, t2v_refresh_status, cost_time, waiting_time],
|
343 |
)
|
344 |
|
345 |
run_i2v_button.click(
|
346 |
fn=i2v_generation_async,
|
347 |
inputs=[img2vid_prompt, img2vid_image, watermark_wan, seed],
|
348 |
+
outputs=[i2v_task_id, status, run_i2v_button, i2v_refresh_status, cost_time, waiting_time],
|
349 |
)
|
350 |
|
351 |
def status_refresh(task_id, task, status):
|