fffiloni commited on
Commit
d341c8d
·
verified ·
1 Parent(s): e856606

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("flash_attention.py"):
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")