yukee1992 commited on
Commit
f654e2c
·
verified ·
1 Parent(s): a1a6ae3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -500,7 +500,8 @@ def generate_storybook_background(job_id: str):
500
  start_time = time.time()
501
 
502
  for i, scene in enumerate(story_request.scenes):
503
- progress = 5 + int((i / total_scenes) * 90)
 
504
 
505
  update_job_status(
506
  job_id,
 
500
  start_time = time.time()
501
 
502
  for i, scene in enumerate(story_request.scenes):
503
+ # FIXED: Better progress calculation
504
+ progress = 5 + int(((i + 1) / total_scenes) * 90)
505
 
506
  update_job_status(
507
  job_id,