Skip to content

Commit

Permalink
Update router start training
Browse files Browse the repository at this point in the history
  • Loading branch information
dyohan9 committed Jun 23, 2020
1 parent 476c017 commit 671e272
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bothub_backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def request_backend_parse_nlu(self, update_id, repository_authorization):

@abstractmethod
def request_backend_start_training_nlu(
self, update_id, by, repository_authorization
self, update_id, by, repository_authorization, from_queue
):
pass

Expand Down
4 changes: 2 additions & 2 deletions bothub_backend/bothub.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,15 @@ def request_backend_parse_nlu(self, update_id, repository_authorization):
return update

def request_backend_start_training_nlu(
self, update_id, by, repository_authorization
self, update_id, by, repository_authorization, from_queue
):
print(f"Starting connection request_backend_start_training_nlu()")
time_start = time.time()
update = requests.post(
"{}/v2/repository/nlp/authorization/train/start_training/".format(
self.backend
),
data={"repository_version": update_id, "by_user": by},
data={"repository_version": update_id, "by_user": by, "from_queue": from_queue},
headers={"Authorization": "Bearer {}".format(repository_authorization)},
).json()
print(
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.10',
version='1.0.11',
description='Bothub NLP Backend',
packages=find_packages(),
install_requires=[
Expand Down

0 comments on commit 671e272

Please sign in to comment.