eddywu commited on
Commit
c1bb76e
·
verified ·
1 Parent(s): 53a4ba0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -249,6 +249,9 @@ def caption_video(video_path: str) -> str:
249
  if torch.cuda.is_available(): torch.cuda.synchronize()
250
  T.mark("generate_s", time.perf_counter()-t)
251
 
 
 
 
252
 
253
  # 5) 後處理
254
  t = time.perf_counter()
 
249
  if torch.cuda.is_available(): torch.cuda.synchronize()
250
  T.mark("generate_s", time.perf_counter()-t)
251
 
252
+ gen_time = time.perf_counter() - t
253
+ print(f"[GEN] time_s={gen_time:.3f}", flush=True)
254
+
255
 
256
  # 5) 後處理
257
  t = time.perf_counter()