Update app.py
Browse files39 unmodified lines404142434445464748269 unmodified lines31831932032132232332432532632732839 unmodified lineswarnings.filterwarnings("ignore")IS_ZERO_GPU = bool(os.getenv("SPACES_ZERO_GPU"))if IS_ZERO_GPU:print("Loading...")subprocess.run("rm -rf /data-nvme/zerogpu-offload/*", env={}, shell=True)# --- FRAME EXTRACTION JS & LOGIC ---269 unmodified linesprint("Failed LoRA:", name_high_tr)pipe.unload_lora_weights()if os.path.exists(CACHE_DIR):shutil.rmtree(CACHE_DIR)print("Deleted Hugging Face cache.")else:print("No hub cache found.")quantize_(pipe.text_encoder, Int8WeightOnlyConfig())torch._dynamo.reset()39 unmodified lines404142434445464748269 unmodified lines31831932032132232332432532632732839 unmodified lineswarnings.filterwarnings("ignore")IS_ZERO_GPU = bool(os.getenv("SPACES_ZERO_GPU"))# if IS_ZERO_GPU:# print("Loading...")# subprocess.run("rm -rf /data-nvme/zerogpu-offload/*", env={}, shell=True)# --- FRAME EXTRACTION JS & LOGIC ---269 unmodified linesprint("Failed LoRA:", name_high_tr)pipe.unload_lora_weights()# if os.path.exists(CACHE_DIR):# shutil.rmtree(CACHE_DIR)# print("Deleted Hugging Face cache.")# else:# print("No hub cache found.")quantize_(pipe.text_encoder, Int8WeightOnlyConfig())torch._dynamo.reset()
app.py+8-8