Compare commits

..

No commits in common. "master" and "1.0.0-b9" have entirely different histories.

2 changed files with 5 additions and 6 deletions

View File

@ -64,10 +64,10 @@ spec:
imagePullPolicy: Always
resources:
requests:
cpu: 64m
memory: 64Mi
cpu: 32m
memory: 32Mi
limits:
cpu: 128m
cpu: 75m
memory: 64Mi
securityContext:
capabilities:

View File

@ -18,13 +18,12 @@ analyser = sentimentAnalyser.get_sentiment()
@app.route('/sentiment', methods=['GET'])
def tweetPredict():
tweet = request.args.get('tweet')
syncId = request.headers.get('X-CRYPTO-Sync-ID')
log("Receiving Tweet to classify [{}] for [{}]".format(tweet, syncId), 'INFO')
log("Receiving Tweet to classify {}".format(tweet), 'INFO')
result = analyser.get_vader_sentiment(tweet)
log("Returning classification result of [{}]".format(result), 'INFO')
log("Returning classification result of {}".format(result), 'INFO')
return json.dumps({'result': result, 'tweet': tweet}), 200, {'ContentType':'application/json'}