CHRIS / CHRIS.py
3v324v23's picture
Claude Code
Remove dead code and untrack DS_Store
35f6c3d
Raw History Blame Contribute Delete
1.14 kB
from flask import Flask, render_template
from werkzeug.middleware.profiler import ProfilerMiddleware
app = Flask(__name__)
app.debug = True
# Profile every request (or limit with restrictions)
#app.wsgi_app = ProfilerMiddleware(
# app.wsgi_app,
# restrictions=[30], # show top 30 lines
# sort_by=("tottime",) # total time spent in function body
#)
from efficiency_module import blueprint
app.register_blueprint(blueprint)
from color2_module import blueprint
app.register_blueprint(blueprint)
from color3_module import blueprint
app.register_blueprint(blueprint)
from exposure2_module import blueprint
app.register_blueprint(blueprint)
from exposure3_module import blueprint
app.register_blueprint(blueprint)
from quantity_module import blueprint
app.register_blueprint(blueprint)
@app.route('/', methods=['GET'])
def app_init():
return render_template(
"main.html",
tool_title="CHRIS: CHemical RISk calculators",
nav_links=[
],
footer_text="Office of Science and Engineering Laboratories · ",
contact_email="david.saylor@fda.hhs.gov",
)
if __name__ == '__main__':
app.run(port=8000)