strateg17 commited on
Commit
6899bde
·
verified ·
1 Parent(s): b46d226

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +2 -2
  2. lgbm_model.joblib +3 -0
  3. vectorizer.joblib +3 -0
app.py CHANGED
@@ -4,8 +4,8 @@ import joblib
4
  # from sklearn.feature_extraction.text import TfidfVectorizer
5
 
6
  # Load your trained model and vectorizer (assuming they're saved as 'lgbm_model.pkl' and 'vectorizer.pkl')
7
- model = joblib.load('lgbm_model.pkl')
8
- vectorizer = joblib.load('vectorizer.pkl')
9
 
10
  def classify_text(text):
11
  # Transform the input text using the loaded vectorizer
 
4
  # from sklearn.feature_extraction.text import TfidfVectorizer
5
 
6
  # Load your trained model and vectorizer (assuming they're saved as 'lgbm_model.pkl' and 'vectorizer.pkl')
7
+ model = joblib.load('lgbm_model.joblib')
8
+ vectorizer = joblib.load('vectorizer.joblib')
9
 
10
  def classify_text(text):
11
  # Transform the input text using the loaded vectorizer
lgbm_model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1b1e38213610b83c26e8ecca7306b5598b04b471c2253530d13b3ff52715db8
3
+ size 2207924
vectorizer.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffde94fdae46050354244414d5b546e62393226a671057d83da2ccbabda59495
3
+ size 304927