Futuretop commited on
Commit
4fdbfc3
Β·
verified Β·
1 Parent(s): a2ed84a

Update app.py

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