Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,9 +37,9 @@ def process_vid(file,cur_frame):
|
|
37 |
frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
|
38 |
rev_img_searcher = ReverseImageSearcher()
|
39 |
html_out=""
|
40 |
-
if cur_frame == "":
|
41 |
start_frame = 0
|
42 |
-
elif cur_frame != "":
|
43 |
start_frame = int(cur_frame)
|
44 |
try:
|
45 |
for i in range(start_frame, frame_count-1):
|
@@ -139,10 +139,10 @@ with gr.Blocks() as app:
|
|
139 |
vid_url=gr.Textbox(label="Video URL")
|
140 |
vid_url_btn=gr.Button("Load URL")
|
141 |
inp_vid=gr.Video(label="Search Video")
|
142 |
-
stat_box=gr.Textbox("Status")
|
143 |
with gr.Row():
|
144 |
-
go_btn_vid=gr.Button()
|
145 |
-
next_btn=gr.Button()
|
146 |
|
147 |
gr.Column()
|
148 |
#paste_clip = gr.Button("Paste from Clipboard")
|
|
|
37 |
frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
|
38 |
rev_img_searcher = ReverseImageSearcher()
|
39 |
html_out=""
|
40 |
+
if cur_frame == "" or cur_frame==None:
|
41 |
start_frame = 0
|
42 |
+
elif cur_frame != "" and cur_frame!=None:
|
43 |
start_frame = int(cur_frame)
|
44 |
try:
|
45 |
for i in range(start_frame, frame_count-1):
|
|
|
139 |
vid_url=gr.Textbox(label="Video URL")
|
140 |
vid_url_btn=gr.Button("Load URL")
|
141 |
inp_vid=gr.Video(label="Search Video")
|
142 |
+
stat_box=gr.Textbox(label="Status")
|
143 |
with gr.Row():
|
144 |
+
go_btn_vid=gr.Button("Start")
|
145 |
+
next_btn=gr.Button("Next")
|
146 |
|
147 |
gr.Column()
|
148 |
#paste_clip = gr.Button("Paste from Clipboard")
|