diff --git a/fatma.txt b/Imp.txt similarity index 76% rename from fatma.txt rename to Imp.txt index 51b29fe..75d235d 100644 --- a/fatma.txt +++ b/Imp.txt @@ -1,3 +1,3 @@ Life is all about doing your best in trying to find what works out for you and taking most time in -trying to pursue those skills \ No newline at end of file +trying to pursue those skills diff --git a/app.py b/app.py index 7a6f452..c3ba36f 100644 --- a/app.py +++ b/app.py @@ -2,9 +2,9 @@ from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity -student_files = [doc for doc in os.listdir() if doc.endswith('.txt')] +studentfiles = [doc for doc in os.listdir() if doc.endswith('.txt')] student_notes = [open(_file, encoding='utf-8').read() - for _file in student_files] + for _file in studentfiles] def vectorize(Text): return TfidfVectorizer().fit_transform(Text).toarray()