Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from unittest.mock import patch
|
|
13 |
from transformers.dynamic_module_utils import get_imports
|
14 |
|
15 |
def fixed_get_imports(filename: str | os.PathLike) -> list[str]:
|
16 |
-
if not str(filename).endswith("
|
17 |
return get_imports(filename)
|
18 |
imports = get_imports(filename)
|
19 |
imports.remove("flash_attn")
|
|
|
13 |
from transformers.dynamic_module_utils import get_imports
|
14 |
|
15 |
def fixed_get_imports(filename: str | os.PathLike) -> list[str]:
|
16 |
+
if not str(filename).endswith("modeling_sa2va_chat.py"):
|
17 |
return get_imports(filename)
|
18 |
imports = get_imports(filename)
|
19 |
imports.remove("flash_attn")
|