Files changed (4) hide show
  1. app.py +3 -5
  2. requirements.txt +1 -1
  3. svc_model.pkl +0 -3
  4. vectorizer.pkl +0 -3
app.py CHANGED
@@ -2,7 +2,6 @@ import numpy as np
2
  import os
3
  import gradio as gr
4
  import xgboost as xgb
5
- import pickle
6
  from sklearn.feature_extraction.text import TfidfVectorizer
7
 
8
  os.environ["WANDB_DISABLED"] = "true"
@@ -10,12 +9,11 @@ os.environ["WANDB_DISABLED"] = "true"
10
  label2id = {
11
  0: "negative",
12
  1: "neutral",
13
- 2: "positive",
14
- 3: "mixed"
15
  }
16
 
17
- model_file_name = "svc_model.pkl"
18
- vectorizer_file_name = 'vectorizer.pkl'
19
 
20
  #load
21
  xgb_model_loaded = pickle.load(open(model_file_name, "rb"))
 
2
  import os
3
  import gradio as gr
4
  import xgboost as xgb
 
5
  from sklearn.feature_extraction.text import TfidfVectorizer
6
 
7
  os.environ["WANDB_DISABLED"] = "true"
 
9
  label2id = {
10
  0: "negative",
11
  1: "neutral",
12
+ 2: "positive"
 
13
  }
14
 
15
+ model_file_name = "xgb_reg.pkl"
16
+ vectorizer_file_name = 'vectorizer.pk'
17
 
18
  #load
19
  xgb_model_loaded = pickle.load(open(model_file_name, "rb"))
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
  gradio
2
  xgboost
3
- scikit-learn==1.5
4
  pandas
 
1
  gradio
2
  xgboost
3
+ scikit-learn
4
  pandas
svc_model.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f9a157abb60761327ed18ef8345c06df0ac62fd877eeb76c021d3bd83df41b6e
3
- size 675470
 
 
 
 
vectorizer.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3ef1996721215dd7831612b4ca9e29d63a2da66f13ec93d6067b8df8756fece7
3
- size 231609