Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -136,6 +136,7 @@ def infer(video_in):
|
|
136 |
# Save the cut video
|
137 |
cut_video.write_videofile(output_video_path, codec='libx264', audio_codec='aac')
|
138 |
print(f"Cut video saved as: {output_video_path}")
|
|
|
139 |
|
140 |
# Delete the original video file
|
141 |
os.remove(input_video_path)
|
|
|
136 |
# Save the cut video
|
137 |
cut_video.write_videofile(output_video_path, codec='libx264', audio_codec='aac')
|
138 |
print(f"Cut video saved as: {output_video_path}")
|
139 |
+
video_in = output_video_path
|
140 |
|
141 |
# Delete the original video file
|
142 |
os.remove(input_video_path)
|