fix : the problem of initing the models
Browse files- __pycache__/app.cpython-310.pyc +0 -0
- 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 |
-
|
| 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():
|