Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

[gradio] hotfix stdit model init

ver217b3f746126c9d
diff --git a/gradio/app.py b/gradio/app.py
index b1906c0..da5b188 100644
--- a/gradio/app.py
+++ b/gradio/app.py
@@ -100,7 +100,7 @@ def build_models(model_type, config, enable_optimization=False):
# handle model download logic in HuggingFace Space
from opensora.models.stdit.stdit3 import STDiT3
- model_kwargs = {k: v for k, v in config.model.items() if k not in ("type", "from_pretrained")}
+ model_kwargs = {k: v for k, v in config.model.items() if k not in ("type", "from_pretrained", "force_huggingface")}
stdit = STDiT3.from_pretrained(HF_STDIT_MAP[model_type], **model_kwargs)
stdit = stdit.cuda()