Spaces:
Paused
Paused
Update app.py
Browse files506 unmodified lines507508509510511512513506 unmodified linesexcept Exception as e:print(f"[LoRA] pipeline rebuild FAILED: {e}")# Finally, log memory then proceedlog_memory("before pipeline call")video, audio = pipeline(506 unmodified lines507508509510511512513514515516517518519520521522523524525526527528529530531532533506 unmodified linesexcept Exception as e:print(f"[LoRA] pipeline rebuild FAILED: {e}")# Force transformer rebuild so LoRA strength actually appliestry:if hasattr(pipeline, "model_ledger"):# Hard reset ALL known transformer referencesif hasattr(pipeline.model_ledger, "_transformer"):pipeline.model_ledger._transformer = None# VERY IMPORTANT: also clear pipeline components cache if presentif hasattr(pipeline, "pipeline_components"):try:pipeline.pipeline_components = Noneexcept 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