mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-09-12 12:02:15 +08:00
General tests working
This commit is contained in:
@@ -14,7 +14,7 @@ def spam(test_text):
|
||||
response = requests.post(base_url("spam"), data=data_dict, headers=headers)
|
||||
return json.loads(response.content)
|
||||
|
||||
def sentiment(test_text):
|
||||
def posneg(test_text):
|
||||
data_dict = json.dumps({'text': test_text})
|
||||
response = requests.post(base_url("sentiment"), data=data_dict, headers=headers)
|
||||
return json.loads(response.content)
|
||||
|
||||
Reference in New Issue
Block a user