Freddy Boulton commited on
Commit
fa43d20
·
1 Parent(s): e440c43
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -388,12 +388,13 @@ def video_generation_handler_streaming(prompt, seed=42, fps=15):
388
  ts_filename = f"block_{idx:04d}_{chunk_uuid}.ts"
389
  ts_path = os.path.join("gradio_tmp", ts_filename)
390
 
 
391
  frames_to_ts_file(all_frames_from_block, ts_path, fps)
392
-
393
  # Calculate final progress for this block
394
  total_progress = (idx + 1) / num_blocks * 100
395
  frame_time = time.monotonic() - start
396
- print(f"🔍 DEBUG Block {idx} frame time: {frame_time:.2f}s")
397
  # Yield the actual video chunk
398
  yield ts_path, gr.update()
399
 
 
388
  ts_filename = f"block_{idx:04d}_{chunk_uuid}.ts"
389
  ts_path = os.path.join("gradio_tmp", ts_filename)
390
 
391
+ print(f"🔍 DEBUG Block {idx} before encoding time: {time.monotonic() - start:.2f}s")
392
  frames_to_ts_file(all_frames_from_block, ts_path, fps)
393
+ print(f"🔍 DEBUG Block {idx} after encoding time: {time.monotonic() - start:.2f}s")
394
  # Calculate final progress for this block
395
  total_progress = (idx + 1) / num_blocks * 100
396
  frame_time = time.monotonic() - start
397
+ print(f"🔍 DEBUG Block {idx} total frame time: {frame_time:.2f}s")
398
  # Yield the actual video chunk
399
  yield ts_path, gr.update()
400