chaojiemao commited on
Commit
237cc11
·
verified ·
1 Parent(s): 86382fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -361,7 +361,7 @@ with gr.Blocks() as demo:
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(), "value": 0 if status else 100}
365
  else:
366
  task_status[task_id]["status"] = status
367
  task_status[task_id]["url"] = video_url
 
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(), "value": 100 if status else 0}
365
  else:
366
  task_status[task_id]["status"] = status
367
  task_status[task_id]["url"] = video_url