Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files381 unmodified lines38238338438538638738896 unmodified lines485486487487488489490381 unmodified lines progress=gr.Progress(track_tqdm=True),): try: global pipeline # <<< ADD THIS LINE HERE (VERY TOP of try block) torch.cuda.reset_peak_memory_stats() log_memory("start")
96 unmodified lines try: # Rebuild pipeline object with the new LoRA descriptor # NOTE: this replaces the global `pipeline`. We must declare global to reassign it. global pipeline pipeline = LTX23DistilledA2VPipeline( distilled_checkpoint_path=checkpoint_path, spatial_upsampler_path=spatial_upsampler_path,app.py+1-1