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