Spaces:
Runtime error
Runtime error
gokaygokay
commited on
Update app.py
Browse files
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
|
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)
|