exact_data2023/application/__init__.py

20 lines
745 B
Python
Raw Normal View History

2023-05-27 15:10:30 +02:00
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
2023-05-28 14:50:23 +02:00
from application.services.errors_service import errors_service
2023-06-10 01:51:01 +02:00
from application.services.irony_service import irony_service
2023-06-14 00:03:39 +02:00
from application.services.style_services import style_service
from application.services.tone_services import tone_service
2023-06-10 01:51:01 +02:00
2023-05-27 15:10:30 +02:00
application.register_blueprint(sentiment_service)
2023-05-28 14:50:23 +02:00
application.register_blueprint(errors_service)
2023-06-10 01:51:01 +02:00
application.register_blueprint(irony_service)
2023-06-14 00:03:39 +02:00
application.register_blueprint(style_service)
application.register_blueprint(tone_service)
2023-05-27 15:10:30 +02:00
return application