YsnHdn commited on
Commit
1f593cd
1 Parent(s): 4deb54c

fix : the problem of initing the models

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +1 -4
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
app.py CHANGED
@@ -22,10 +22,7 @@ def init_app():
22
  global_model, global_neptune, global_pipe = load_models()
23
  print("Models loaded successfully!")
24
 
25
- # Call init_app() before the first request
26
- @app.before_first_request
27
- def before_first_request():
28
- init_app()
29
 
30
  @app.route("/")
31
  def home():
 
22
  global_model, global_neptune, global_pipe = load_models()
23
  print("Models loaded successfully!")
24
 
25
+ init_app()
 
 
 
26
 
27
  @app.route("/")
28
  def home():