Skip to content

Commit

Permalink
duplicated model
Browse files Browse the repository at this point in the history
  • Loading branch information
lauragreemko committed Oct 9, 2022
1 parent 2142a4e commit aab2e8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from nltk.stem.snowball import SnowballStemmer

def load_models(model_name):
path = 'home/yesimtrinity/technical_test_laura/app/static/models/' + model_name
return pickle.load(open(path,'rb'))
return pickle.load(open(model_name,'rb'))

def get_arguments(arg):
return request.args.get(arg, None)
Expand Down
Binary file added app/sentiment_model
Binary file not shown.

0 comments on commit aab2e8f

Please sign in to comment.