Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ import pandas as pd
|
|
4 |
import numpy as np
|
5 |
|
6 |
|
7 |
-
|
8 |
# for text data preprocessing
|
9 |
import re
|
10 |
from nltk.corpus import stopwords
|
@@ -12,7 +11,6 @@ from nltk.stem.porter import PorterStemmer
|
|
12 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
13 |
from sklearn.metrics.pairwise import cosine_similarity
|
14 |
|
15 |
-
# Assuming you have 'lpi_df' and 'similarity' defined before this point
|
16 |
|
17 |
lpi_df = pd.read_csv('Learning_Pathway_Index.csv')
|
18 |
|
|
|
4 |
import numpy as np
|
5 |
|
6 |
|
|
|
7 |
# for text data preprocessing
|
8 |
import re
|
9 |
from nltk.corpus import stopwords
|
|
|
11 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
12 |
from sklearn.metrics.pairwise import cosine_similarity
|
13 |
|
|
|
14 |
|
15 |
lpi_df = pd.read_csv('Learning_Pathway_Index.csv')
|
16 |
|