Skip to content

Commit

Permalink
Update rasa_nlu/server.py
Browse files Browse the repository at this point in the history
Co-Authored-By: EPedrotti <44090731+EPedrotti@users.noreply.github.com>
  • Loading branch information
wochinge and EPedrotti authored Feb 25, 2019
1 parent 22179c7 commit ff5c3e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rasa_nlu/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ def train(self, request):
RasaNLUModelConfig(model_config), model_name)
zipped_path = utils.zip_folder(path_to_model)

return returnValue(io.open(zipped_path, 'r+b').read())
zip_content = io.open(zipped_path, 'r+b').read()
return returnValue(zip_content)

except MaxTrainingError as e:
request.setResponseCode(403)
Expand Down

0 comments on commit ff5c3e2

Please sign in to comment.