Skip to content

Commit 923715b

Browse files
committed
Made Flake8 changes
1 parent 91c94fe commit 923715b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simple_plagiarism_detector/simple-plagiarism-detector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ def text_to_vector(text):
4242
text2 = file2.read().replace("\n", " ")
4343

4444
if len(text1) == 0 and len(text2) == 0:
45-
print(f"given text files were empty, imputing '1' as place holder")
45+
print("given text files were empty, imputing '1' as place holder")
4646
text1 = '' + '1'
4747
text2 = '' + '1'
4848

4949
vector1 = text_to_vector(text1)
5050
vector2 = text_to_vector(text2)
51-
51+
5252
cosine = round(get_cosine(vector1, vector2), 2)
5353

5454
print("Similarity Score:", cosine)

0 commit comments

Comments
 (0)