test
This commit is contained in:
parent
1dca6fd729
commit
14ebbba342
@ -10,9 +10,9 @@ 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) #czyszczenie danych wejsciowych
|
||||
predicitons = sentiment_prediction(data_clear) #predykcje
|
||||
count_labels = count_predictions(predicitons) #dane do wykresu
|
||||
data_clear = clear_data(data) #czyszczenie danych wejsciowych
|
||||
predicitons = sentiment_prediction(data_clear) #predykcje
|
||||
count_labels = count_predictions(predicitons) #dane do wykresu
|
||||
|
||||
for i in range(0, len(predicitons)):
|
||||
predicitons[i]['sentence'] = data['sentences'][i]
|
||||
|
Loading…
Reference in New Issue
Block a user