From 2cfa374b80742c6a0cfe011ef68f10e43876bd3d Mon Sep 17 00:00:00 2001 From: stwala Date: Mon, 5 Aug 2024 03:30:50 +0200 Subject: [PATCH] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 7a6f452..fb61f2a 100644 --- a/app.py +++ b/app.py @@ -25,7 +25,7 @@ def check_plagiarism(): for student_b, text_vector_b in new_vectors: sim_score = similarity(text_vector_a, text_vector_b)[0][1] student_pair = sorted((student_a, student_b)) - score = (student_pair[0], student_pair[1], sim_score) + score = (student_pair[0], student_pair[1], round(sim_score,2)) plagiarism_results.add(score) return plagiarism_results