fix return predictions
This commit is contained in:
parent
cfc9b1c0d8
commit
2f2de698b6
@ -13,4 +13,8 @@ def get_data():
|
||||
predicitons = sentiment_prediction(data['sentences']) #predykcje
|
||||
count_labels = count_predictions(predicitons) #dane do wykresu
|
||||
|
||||
for i in range(0, len(predicitons)):
|
||||
predicitons[i]['sentence'] = data['sentences'][i]
|
||||
predicitons[i]['label'] = predicitons[i]['label'][6:]
|
||||
|
||||
return jsonify({"predictions": predicitons, "count_labels": count_labels})
|
Loading…
Reference in New Issue
Block a user