Ahsen Khaliq commited on
Commit
0785038
1 Parent(s): 02e7400

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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] * N / fps)
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"