models / clean.py
Viperboy123's picture
auto
20b9092
raw
history blame contribute delete
613 Bytes
# ..
import os
import io
import sys
import tempfile
temp_dir = os.path.join(tempfile.gettempdir(), "")
print("Press any key to start cleaning...")
os.system("pause")
print("Are you sure?")
os.system("pause")
os.system(f"rmdir /s /q \"../outputs\"")
os.system(f"rmdir /s /q outputs")
os.system(f"del out*.7z")
std = os.path.join(temp_dir, "gradio")
os.system(f"rmdir /s /q {std}")
std = os.path.join(temp_dir, "iib_cache")
os.system(f"rmdir /s /q {std}")
std = os.path.join(temp_dir, "Safe Transaction")
os.system(f"rmdir /s /q {std}")
print("Done.")
os.system("pause")
sys.exit(1)