Spaces:
Paused
Paused
Update app.py
Browse files506 unmodified lines507508509510510511512513514515516517518519520521522523524525526527528529530531532533506 unmodified lines except Exception as e: print(f"[LoRA] pipeline rebuild FAILED: {e}")
# Finally, log memory then proceed # Force transformer rebuild so LoRA strength actually applies try: if hasattr(pipeline, "model_ledger"): # Hard reset ALL known transformer references if hasattr(pipeline.model_ledger, "_transformer"): pipeline.model_ledger._transformer = None # VERY IMPORTANT: also clear pipeline components cache if present if hasattr(pipeline, "pipeline_components"): try: pipeline.pipeline_components = None except Exception: pass # Force rebuild NOW (so it uses the new LoRA strength) _ = pipeline.model_ledger.transformer() print("[LoRA] transformer force-rebuilt with new strength") except Exception as e: print(f"[LoRA] transformer rebuild failed: {e}") log_memory("before pipeline call")
video, audio = pipeline(app.py+21-1