Priyanhsu commited on
Commit
60f3574
·
1 Parent(s): c89d0b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -20,6 +20,8 @@ nltk.download('punkt')
20
 
21
  model = joblib.load('model.bin')
22
 
 
 
23
  def remove_punctuation(text):
24
  punctuation_free = "".join([i for i in text if i not in string.punctuation])
25
  return punctuation_free
 
20
 
21
  model = joblib.load('model.bin')
22
 
23
+ # Initialize the vectorizer
24
+ vectorizer = CountVectorizer()
25
  def remove_punctuation(text):
26
  punctuation_free = "".join([i for i in text if i not in string.punctuation])
27
  return punctuation_free