Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("Preprocess_LK_Hadith_dataset.csv")
|
| 17 |
self.labels = self.dataset['Arabic_Grade']
|
| 18 |
|
| 19 |
# Load the models
|
| 20 |
-
with open("tfidf_vectorizer.pkl", "rb") as f:
|
| 21 |
self.vectorizer = pickle.load(f)
|
| 22 |
-
with open("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
|