-
Notifications
You must be signed in to change notification settings - Fork 8
/
app.py
30 lines (25 loc) · 1.02 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# if you get this error :
# Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
# uncomment this code
###########################################
import os
os.environ['KMP_DUPLICATE_LIB_OK']='True'
###########################################
from flask import Flask,render_template
from models.cataract.catapp import catapp
from models.pneumonia.pneapp import pneapp
from models.braintumor.brainapp import brainapp
from models.riskmodel.rapp import rapp
app=Flask(__name__,template_folder="./templates",static_folder="./static")
app.register_blueprint(brainapp,url_prefix="/models/braintumor")
app.register_blueprint(catapp,url_prefix="/models/cataract")
app.register_blueprint(pneapp,url_prefix="/models/pneumonia")
app.register_blueprint(rapp,url_prefix="/models/riskmodel")
@app.route("/")
def index():
return render_template("index.html")
@app.route("/getting_started")
def gs():
return render_template("getting_started.html")
if __name__=="__main__":
app.run(port=8000,debug=True)