mirror of
https://github.com/reiyua/HospitalWaitTimeCalc.git
synced 2026-11-17 06:12:05 +11:00
will this work with vercel? who knows
This commit is contained in:
parent
f46cd2416a
commit
4577e9a2fc
2 changed files with 15 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ from flask import Flask
|
||||||
|
|
||||||
|
|
||||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
model_path = os.path.join(BASE_DIR, "models/main.pkl")
|
model_path = os.path.join(BASE_DIR, "models", "main.pkl")
|
||||||
# to get your model: joblib.dump(model, "model.pkl")
|
# to get your model: joblib.dump(model, "model.pkl")
|
||||||
|
|
||||||
model = joblib.load(model_path)
|
model = joblib.load(model_path)
|
||||||
14
vercel.json
Normal file
14
vercel.json
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"functions": {
|
||||||
|
"api/index.py": {
|
||||||
|
"runtime": "python3.11"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"src": "/(.*)",
|
||||||
|
"dest": "api/index.py"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue