Skip to content

Commit

Permalink
Fix API return
Browse files Browse the repository at this point in the history
  • Loading branch information
JavClaude committed May 31, 2020
1 parent 594ba64 commit e0fbc99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def api_sentiment():
prediction = predict(Model, encoded)

request_responses = {
"Negative Score" : prediction[0][0],
"Positive Score" : prediction[0][1]
"Negative Score" : str(prediction[0][0]),
"Positive Score" : str(prediction[0][1])
}

return jsonify(request_responses)
Expand Down

0 comments on commit e0fbc99

Please sign in to comment.