Omnibus commited on
Commit
d6c4fb4
1 Parent(s): 396a20f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,8 +29,9 @@ def process_vid(file):
29
  ret, frame_f = capture.read(i)
30
  cv2.imwrite(f"{uid}-vid_tmp.png", frame_f)
31
  out = os.path.abspath(f"{uid}-vid_tmp.png")
 
32
  print(out)
33
- res = rev_img_searcher.search(out)
34
  print (res)
35
  if len(res) > 0:
36
  count = 0
 
29
  ret, frame_f = capture.read(i)
30
  cv2.imwrite(f"{uid}-vid_tmp.png", frame_f)
31
  out = os.path.abspath(f"{uid}-vid_tmp.png")
32
+ out_url = f'https://omnibus-reverse-image.hf.space/file={out}'
33
  print(out)
34
+ res = rev_img_searcher.search(out_url)
35
  print (res)
36
  if len(res) > 0:
37
  count = 0