Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def process_vid(file,cur_frame):
|
|
49 |
ret, frame_f = capture.read(i)
|
50 |
cv2.imwrite(f"{uid}-vid_tmp{i}.png", frame_f)
|
51 |
out = os.path.abspath(f"{uid}-vid_tmp{i}.png")
|
52 |
-
out_url = f'https://omnibus-reverse-image.hf.space/file={out}'
|
53 |
print(out)
|
54 |
res = rev_img_searcher.search(out_url)
|
55 |
#print (res)
|
@@ -74,7 +74,7 @@ def process_vid(file,cur_frame):
|
|
74 |
return (gr.HTML(f'<h1>Total Found: {count}</h1><br>{html_out}'), f"Found frame: {i}", i)
|
75 |
else:
|
76 |
pass
|
77 |
-
|
78 |
except Exception as e:
|
79 |
return (gr.HTML(f'{e}'),"","")
|
80 |
return (gr.HTML('No frame matches found.'),"","")
|
|
|
49 |
ret, frame_f = capture.read(i)
|
50 |
cv2.imwrite(f"{uid}-vid_tmp{i}.png", frame_f)
|
51 |
out = os.path.abspath(f"{uid}-vid_tmp{i}.png")
|
52 |
+
out_url = f'https://omnibus-reverse-image-dev.hf.space/file={out}'
|
53 |
print(out)
|
54 |
res = rev_img_searcher.search(out_url)
|
55 |
#print (res)
|
|
|
74 |
return (gr.HTML(f'<h1>Total Found: {count}</h1><br>{html_out}'), f"Found frame: {i}", i)
|
75 |
else:
|
76 |
pass
|
77 |
+
yield (None,f"Searching Frame: {i}", "")
|
78 |
except Exception as e:
|
79 |
return (gr.HTML(f'{e}'),"","")
|
80 |
return (gr.HTML('No frame matches found.'),"","")
|