gokaygokay commited on
Commit
47ea09b
·
verified ·
1 Parent(s): 153a869

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ from typing import Union
29
  from transformers.dynamic_module_utils import get_imports
30
 
31
 
32
- def fixed_get_imports(filename: Union[str, os.PathLike]) -> list[str]:
33
  """Work around for https://huggingface.co/microsoft/phi-1_5/discussions/72."""
34
  if not str(filename).endswith("/modeling_florence2.py"):
35
  return get_imports(filename)
 
29
  from transformers.dynamic_module_utils import get_imports
30
 
31
 
32
+ def fixed_get_imports(filename):
33
  """Work around for https://huggingface.co/microsoft/phi-1_5/discussions/72."""
34
  if not str(filename).endswith("/modeling_florence2.py"):
35
  return get_imports(filename)