Mohamed-Maher commited on
Commit
5ec6459
·
verified ·
1 Parent(s): 607ce83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -12,11 +12,11 @@ class HadithClassificationApp:
12
  # Download NLTK resources if needed
13
  nltk.download('punkt')
14
 
15
- # Define file paths
16
- base_path = os.path.dirname(__file__)
17
- dataset_path = os.path.join(base_path, "Preprocess_LK_Hadith_dataset.csv")
18
- vectorizer_path = os.path.join(base_path, "tfidf_vectorizer.pkl")
19
- similarity_model_path = os.path.join(base_path, "cosine_similarity_model.pkl")
20
 
21
  # Load the dataset and labels
22
  self.dataset = pd.read_csv(dataset_path)
 
12
  # Download NLTK resources if needed
13
  nltk.download('punkt')
14
 
15
+ # # Define file paths
16
+ # base_path = os.path.dirname(__file__)
17
+ # dataset_path = os.path.join(base_path, "Preprocess_LK_Hadith_dataset.csv")
18
+ # vectorizer_path = os.path.join(base_path, "tfidf_vectorizer.pkl")
19
+ # similarity_model_path = os.path.join(base_path, "cosine_similarity_model.pkl")
20
 
21
  # Load the dataset and labels
22
  self.dataset = pd.read_csv(dataset_path)