This commit is contained in:
Maciej Ścigacz 2023-05-30 13:59:26 +02:00
parent 3394f00690
commit 1dca6fd729

View File

@ -10,8 +10,7 @@ sentiment_service = Blueprint("sentiment_service", __name__)
@sentiment_service.route("/get_sentiment_data", methods=['POST'])
def get_data():
data = request.get_json()
data_clear = clear_data(data)
print(data_clear) #czyszczenie danych wejsciowych
data_clear = clear_data(data) #czyszczenie danych wejsciowych
predicitons = sentiment_prediction(data_clear) #predykcje
count_labels = count_predictions(predicitons) #dane do wykresu