Spaces:
Runtime error
Runtime error
chandansocial7
commited on
Commit
•
8fc5a78
1
Parent(s):
29346e4
Update app.py
Browse files
app.py
CHANGED
@@ -223,9 +223,9 @@ def build_models(model_type, config, enable_optimization=False):
|
|
223 |
# build stdit
|
224 |
# we load model from HuggingFace directly so that we don't need to
|
225 |
# handle model download logic in HuggingFace Space
|
226 |
-
from transformers import
|
227 |
|
228 |
-
stdit =
|
229 |
HF_STDIT_MAP[model_type],
|
230 |
enable_flash_attn=enable_optimization,
|
231 |
trust_remote_code=True,
|
|
|
223 |
# build stdit
|
224 |
# we load model from HuggingFace directly so that we don't need to
|
225 |
# handle model download logic in HuggingFace Space
|
226 |
+
from transformers import AutoModel
|
227 |
|
228 |
+
stdit = AutoModel.from_pretrained(
|
229 |
HF_STDIT_MAP[model_type],
|
230 |
enable_flash_attn=enable_optimization,
|
231 |
trust_remote_code=True,
|