Spaces:
Runtime error
Runtime error
Ahsen Khaliq commited on
Commit ·
0785038
1
Parent(s): 02e7400
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ def inference(video, text):
|
|
| 79 |
for frame_id in best_photo_idx:
|
| 80 |
frame = video_frames[frame_id]
|
| 81 |
# Find the timestamp in the video and display it
|
| 82 |
-
seconds = round(frame_id.cpu().numpy()[0] *
|
| 83 |
return frame,f"Found at {str(datetime.timedelta(seconds=seconds))}"
|
| 84 |
|
| 85 |
title = "Video Search"
|
|
|
|
| 79 |
for frame_id in best_photo_idx:
|
| 80 |
frame = video_frames[frame_id]
|
| 81 |
# Find the timestamp in the video and display it
|
| 82 |
+
seconds = round(frame_id.cpu().numpy()[0] * fps)
|
| 83 |
return frame,f"Found at {str(datetime.timedelta(seconds=seconds))}"
|
| 84 |
|
| 85 |
title = "Video Search"
|