This commit is contained in:
szymonj98 2023-05-28 14:51:15 +02:00
commit e43a18241c

View File

@ -7,7 +7,7 @@ from application.functions.sentiment import sentiment_prediction, count_predicti
sentiment_service = Blueprint("sentiment_service", __name__) sentiment_service = Blueprint("sentiment_service", __name__)
@sentiment_service.route("/get_sentiment_data", methods=['PUT']) @sentiment_service.route("/get_sentiment_data", methods=['POST'])
def get_data(): def get_data():
data = request.get_json() data = request.get_json()
predicitons = sentiment_prediction(data['sentences']) #predykcje predicitons = sentiment_prediction(data['sentences']) #predykcje