streetyogi commited on
Commit
270d6d5
·
1 Parent(s): 2bf61ba

Update inference_server.py

Browse files
Files changed (1) hide show
  1. inference_server.py +1 -1
inference_server.py CHANGED
@@ -15,7 +15,7 @@ def predict(input_text: str):
15
  strings.add(input_text)
16
  # Train a new model using all strings in the set
17
  model = Pipeline([
18
- ('vectorizer', TfidVectorizer()),
19
  ('classifier', MultinomialNB())
20
  ])
21
  model.fit(list(strings), list(strings))
 
15
  strings.add(input_text)
16
  # Train a new model using all strings in the set
17
  model = Pipeline([
18
+ ('vectorizer', TfidfVectorizer()),
19
  ('classifier', MultinomialNB())
20
  ])
21
  model.fit(list(strings), list(strings))