Compare commits
No commits in common. "master" and "1.0.0-b12" have entirely different histories.
@ -64,11 +64,11 @@ spec:
|
|||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 64m
|
cpu: 32m
|
||||||
memory: 64Mi
|
memory: 32Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 128m
|
cpu: 50m
|
||||||
memory: 64Mi
|
memory: 32Mi
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
|||||||
@ -18,9 +18,8 @@ analyser = sentimentAnalyser.get_sentiment()
|
|||||||
@app.route('/sentiment', methods=['GET'])
|
@app.route('/sentiment', methods=['GET'])
|
||||||
def tweetPredict():
|
def tweetPredict():
|
||||||
tweet = request.args.get('tweet')
|
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)
|
result = analyser.get_vader_sentiment(tweet)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user