change method for endpoint
This commit is contained in:
parent
2f2de698b6
commit
370210c2a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user