Skip to content

Commit

Permalink
Merge pull request #23 from bothub-it/hotfix/send_nlp_log
Browse files Browse the repository at this point in the history
Hotfix/send nlp log
  • Loading branch information
lucasagra committed May 26, 2021
2 parents 3fa4d7a + 396c2f6 commit 2ef4dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bothub_backend/bothub.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def request_backend_repository_entity_nlu_parse(
def send_log_nlp_parse(self, data):
url = f"{self.backend}/v2/repository/nlp/log/"
headers = {"Content-Type": "application/json"}
response = requests.post(url, data=data, headers=headers).json()
response = requests.post(url, json=data, headers=headers).json()

return response

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='bothub_backend',
version='1.0.21',
version='1.0.21-hotfix',
description='Bothub NLP Backend',
packages=find_packages(),
install_requires=[
Expand Down

0 comments on commit 2ef4dc0

Please sign in to comment.