Ahsen Khaliq commited on
Commit
c6abcb0
1 Parent(s): 4db966d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def inference(video, text):
83
  for frame_id in best_photo_idx:
84
  frame = video_frames[frame_id]
85
  # Find the timestamp in the video and display it
86
- seconds = round(frame_id.cpu().numpy()[0])
87
  return frame,f"Found at {str(datetime.timedelta(seconds=seconds))}"
88
 
89
  title = "Video Search"
 
83
  for frame_id in best_photo_idx:
84
  frame = video_frames[frame_id]
85
  # Find the timestamp in the video and display it
86
+ seconds = round(frame_id.cpu().numpy()[0]/fps)
87
  return frame,f"Found at {str(datetime.timedelta(seconds=seconds))}"
88
 
89
  title = "Video Search"