Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -377,7 +377,7 @@ def switch_working_frame(working_frame, scanned_frames, video_frames_dir):
|
|
377 |
# Extract the integer from the match
|
378 |
frame_number = int(match.group(1))
|
379 |
ann_frame_idx = frame_number
|
380 |
-
new_working_frame = os.path.join(video_frames_dir, scanned_frames[
|
381 |
return new_working_frame, gr.State([]), gr.State([]), new_working_frame, new_working_frame
|
382 |
|
383 |
with gr.Blocks() as demo:
|
|
|
377 |
# Extract the integer from the match
|
378 |
frame_number = int(match.group(1))
|
379 |
ann_frame_idx = frame_number
|
380 |
+
new_working_frame = os.path.join(video_frames_dir, scanned_frames[ann_frame_idx])
|
381 |
return new_working_frame, gr.State([]), gr.State([]), new_working_frame, new_working_frame
|
382 |
|
383 |
with gr.Blocks() as demo:
|