Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -152,6 +152,8 @@ def clear_points(image):
|
|
152 |
]
|
153 |
|
154 |
def preprocess_video_in(video_path):
|
|
|
|
|
155 |
|
156 |
# Generate a unique ID based on the current date and time
|
157 |
unique_id = datetime.now().strftime('%Y%m%d%H%M%S')
|
@@ -845,6 +847,6 @@ with gr.Blocks(css=css) as demo:
|
|
845 |
outputs = [output_propagated, output_video, working_frame, available_frames_to_check, reset_prpgt_brn]
|
846 |
)
|
847 |
|
848 |
-
gr.Examples(vid_l, video_in)
|
849 |
|
850 |
demo.launch(share = True)
|
|
|
152 |
]
|
153 |
|
154 |
def preprocess_video_in(video_path):
|
155 |
+
import shutil
|
156 |
+
shutil.copy2(video_path, "input_video.mp4")
|
157 |
|
158 |
# Generate a unique ID based on the current date and time
|
159 |
unique_id = datetime.now().strftime('%Y%m%d%H%M%S')
|
|
|
847 |
outputs = [output_propagated, output_video, working_frame, available_frames_to_check, reset_prpgt_brn]
|
848 |
)
|
849 |
|
850 |
+
gr.Examples(["逆风散羽之别.mp4"] + vid_l, video_in)
|
851 |
|
852 |
demo.launch(share = True)
|