exact_data2023/application/__init__.py
2023-06-10 01:51:01 +02:00

16 lines
516 B
Python

from flask import Flask
from flask_cors import CORS
def create_app():
application = Flask(__name__)
CORS(application)
from application.services.sentiment_service import sentiment_service
from application.services.errors_service import errors_service
from application.services.irony_service import irony_service
application.register_blueprint(sentiment_service)
application.register_blueprint(errors_service)
application.register_blueprint(irony_service)
return application