Spaces:
Runtime error
Runtime error
import glob | |
import os | |
def clean_videos(path: str): | |
# Remove past videos | |
files = glob.glob(f"{path}/*") | |
for file in files: | |
if file.endswith(".mp4"): | |
os.remove(file) | |