Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|