[09.10.20] Misspelling

This commit is contained in:
andrewso 2020-10-09 18:09:14 +01:00
parent 47569f2ea6
commit a9ec303f3f

View File

@ -28,7 +28,7 @@ def tweetPredict():
return json.dumps({'result': result, 'tweet': tweet}), 200, {'ContentType':'application/json'} return json.dumps({'result': result, 'tweet': tweet}), 200, {'ContentType':'application/json'}
@app.route('/sentimentProbeTest', methods=['GET']) @app.route('/sentimentProbeTest', methods=['GET'])
def sentimentProbeTrst(): def sentimentProbeTest():
return json.dumps({'result': {'Score': {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}, 'Compound': 0.0}, 'tweet': 'Fake Text'}), 200, {'ContentType':'application/json'} return json.dumps({'result': {'Score': {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}, 'Compound': 0.0}, 'tweet': 'Fake Text'}), 200, {'ContentType':'application/json'}
def callSentimentAnalyser(): def callSentimentAnalyser():