Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|