[09.10.20] Connection testing
This commit is contained in:
parent
f934e6acbe
commit
70a46842ed
@ -13,6 +13,8 @@ def callSentimentAnalyser(tweet):
|
||||
log("Calling Sentiment Analyser", 'INFO')
|
||||
try:
|
||||
uri = keys().sentiment_analyser_uri + "/sentiment?tweet="+tweet
|
||||
|
||||
print(uri)
|
||||
response = requests.request("GET", uri)
|
||||
|
||||
print(response)
|
||||
|
||||
@ -12,6 +12,8 @@ class keys():
|
||||
def callSpamFilter(tweet):
|
||||
try:
|
||||
uri = keys().spamFilter_uri + "/predict?tweet="+tweet
|
||||
|
||||
print(uri)
|
||||
response = requests.request("GET", uri)
|
||||
|
||||
print(response)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user