Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files381 unmodified lines38238338438538638796 unmodified lines484485486487488489490381 unmodified linesprogress=gr.Progress(track_tqdm=True),):try:torch.cuda.reset_peak_memory_stats()log_memory("start")96 unmodified linestry:# Rebuild pipeline object with the new LoRA descriptor# NOTE: this replaces the global `pipeline`. We must declare global to reassign it.global pipelinepipeline = LTX23DistilledA2VPipeline(distilled_checkpoint_path=checkpoint_path,spatial_upsampler_path=spatial_upsampler_path,381 unmodified lines38238338438538638738896 unmodified lines485486487488489490381 unmodified linesprogress=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 linestry:# Rebuild pipeline object with the new LoRA descriptor# NOTE: this replaces the global `pipeline`. We must declare global to reassign it.pipeline = LTX23DistilledA2VPipeline(distilled_checkpoint_path=checkpoint_path,spatial_upsampler_path=spatial_upsampler_path,
app.py+1-1