Skip to content

Commit

Permalink
remove unwanted files, clean imports
Browse files Browse the repository at this point in the history
  • Loading branch information
EPedrotti committed Feb 22, 2019
1 parent 76ab8e8 commit 471fe2d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 106 deletions.
4 changes: 0 additions & 4 deletions rasa_nlu/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import io
import logging
from functools import wraps
from zipfile import BadZipFile

import simplejson
from klein import Klein
Expand Down Expand Up @@ -363,9 +362,6 @@ def train(self, request):
except TrainingException as e:
request.setResponseCode(500)
returnValue(json_to_string({"error": "{}".format(e)}))
except BadZipFile as e:
request.setResponseCode(500)
returnValue(json_to_string({"error": "{}".format(e)}))

@app.route("/evaluate", methods=['POST', 'OPTIONS'])
@requires_auth
Expand Down
2 changes: 1 addition & 1 deletion rasa_nlu/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def create_temporary_file(data: Any,
return f.name


def zip_folder(folder: Text, library: Text = None) -> Text:
def zip_folder(folder: Text) -> Text:
"""Create an archive from a folder."""
import tempfile
import shutil
Expand Down
Binary file not shown.
87 changes: 0 additions & 87 deletions test_model/model_20190208-175825/metadata.json

This file was deleted.

1 change: 0 additions & 1 deletion test_model/model_20190208-175825/regex_featurizer.json

This file was deleted.

13 changes: 0 additions & 13 deletions test_model/model_20190208-175825/training_data.json

This file was deleted.

0 comments on commit 471fe2d

Please sign in to comment.