mirror of
https://github.com/yuruotong1/autoMate.git
synced 2026-03-22 13:07:17 +08:00
18 lines
437 B
Python
18 lines
437 B
Python
from flask import Flask
|
|
|
|
def create_app():
|
|
app = Flask(__name__)
|
|
|
|
with app.app_context():
|
|
from route.code_executor import home_bp
|
|
app.register_blueprint(home_bp)
|
|
from route.shutdown import home_bp
|
|
app.register_blueprint(home_bp)
|
|
from route.llm import home_bp
|
|
app.register_blueprint(home_bp)
|
|
|
|
return app
|
|
|
|
if __name__ == "__main__":
|
|
app = create_app()
|
|
app.run(debug=True) |