Mohamed-Maher commited on
Commit
f1e9e1a
·
verified ·
1 Parent(s): b26771a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,13 +13,13 @@ class HadithClassificationApp:
13
  nltk.download('punkt')
14
 
15
  # Load the dataset and labels
16
- self.dataset = pd.read_csv("/home/user/app/Preprocess_LK_Hadith_dataset.csv")
17
  self.labels = self.dataset['Arabic_Grade']
18
 
19
  # Load the models
20
- with open("/home/user/app/tfidf_vectorizer.pkl", "rb") as f:
21
  self.vectorizer = pickle.load(f)
22
- with open("/home/user/app/cosine_similarity_model.pkl", "rb") as f:
23
  self.X = pickle.load(f)
24
 
25
  @staticmethod
 
13
  nltk.download('punkt')
14
 
15
  # Load the dataset and labels
16
+ self.dataset = pd.read_csv("home/user/app/Preprocess_LK_Hadith_dataset.csv")
17
  self.labels = self.dataset['Arabic_Grade']
18
 
19
  # Load the models
20
+ with open("home/user/app/tfidf_vectorizer.pkl", "rb") as f:
21
  self.vectorizer = pickle.load(f)
22
+ with open("home/user/app/cosine_similarity_model.pkl", "rb") as f:
23
  self.X = pickle.load(f)
24
 
25
  @staticmethod