Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -360,7 +360,7 @@ with gr.Blocks() as demo:
|
|
360 |
else:
|
361 |
cost_time = 0
|
362 |
status, video_url = get_result_with_task_id(task_id)
|
363 |
-
if
|
364 |
task_status[task_id] = {"status": status, "url": video_url, "time": time.time()}
|
365 |
else:
|
366 |
task_status[task_id]["status"] = status
|
|
|
360 |
else:
|
361 |
cost_time = 0
|
362 |
status, video_url = get_result_with_task_id(task_id)
|
363 |
+
if task_id not in task_status:
|
364 |
task_status[task_id] = {"status": status, "url": video_url, "time": time.time()}
|
365 |
else:
|
366 |
task_status[task_id]["status"] = status
|