Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,7 @@ def process_vid(file):
|
|
22 |
capture = cv2.VideoCapture(new_video_in)
|
23 |
frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
|
24 |
rev_img_searcher = ReverseImageSearcher()
|
|
|
25 |
try:
|
26 |
for i in range(frame_count-1):
|
27 |
print(i)
|
@@ -32,7 +33,7 @@ def process_vid(file):
|
|
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
|
38 |
for search_item in res:
|
|
|
22 |
capture = cv2.VideoCapture(new_video_in)
|
23 |
frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
|
24 |
rev_img_searcher = ReverseImageSearcher()
|
25 |
+
html_out=""
|
26 |
try:
|
27 |
for i in range(frame_count-1):
|
28 |
print(i)
|
|
|
33 |
out_url = f'https://omnibus-reverse-image.hf.space/file={out}'
|
34 |
print(out)
|
35 |
res = rev_img_searcher.search(out_url)
|
36 |
+
#print (res)
|
37 |
if len(res) > 0:
|
38 |
count = 0
|
39 |
for search_item in res:
|