change method for endpoint

This commit is contained in:
Maciej Ścigacz 2023-05-27 18:39:33 +02:00
parent 2f2de698b6
commit 370210c2a4

View File

@ -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