From 370210c2a4d00dd8ef91a555abf0ffc890342e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=9Acigacz?= Date: Sat, 27 May 2023 18:39:33 +0200 Subject: [PATCH] change method for endpoint --- application/services/sentiment_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/services/sentiment_service.py b/application/services/sentiment_service.py index 256dd53..e86e504 100644 --- a/application/services/sentiment_service.py +++ b/application/services/sentiment_service.py @@ -7,7 +7,7 @@ from application.functions.sentiment import sentiment_prediction, count_predicti sentiment_service = Blueprint("sentiment_service", __name__) -@sentiment_service.route("/get_sentiment_data", methods=['GET']) +@sentiment_service.route("/get_sentiment_data", methods=['POST']) def get_data(): data = request.get_json() predicitons = sentiment_prediction(data['sentences']) #predykcje