Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,6 @@ config_mod_name = config.__class__.__module__
|
|
21 |
config_mod = sys.modules[config_mod_name]
|
22 |
code_dir = os.path.dirname(config_mod.__file__)
|
23 |
|
24 |
-
modeling_path = os.path.join(code_dir, "app.py")
|
25 |
-
if not os.path.exists(modeling_path):
|
26 |
-
raise FileNotFoundError(f"Couldnβt find {modeling_path}")
|
27 |
-
|
28 |
spec = importlib.util.spec_from_file_location("florence2_modeling", modeling_path)
|
29 |
flor_mod = importlib.util.module_from_spec(spec)
|
30 |
sys.modules["florence2_modeling"] = flor_mod
|
|
|
21 |
config_mod = sys.modules[config_mod_name]
|
22 |
code_dir = os.path.dirname(config_mod.__file__)
|
23 |
|
|
|
|
|
|
|
|
|
24 |
spec = importlib.util.spec_from_file_location("florence2_modeling", modeling_path)
|
25 |
flor_mod = importlib.util.module_from_spec(spec)
|
26 |
sys.modules["florence2_modeling"] = flor_mod
|