Spaces:
Running
Running
increase workers in parallet
Browse files- plagiarism.py +1 -1
plagiarism.py
CHANGED
@@ -204,7 +204,7 @@ def matching_score(sentence_content_tuple):
|
|
204 |
|
205 |
|
206 |
def process_with_multiprocessing(input_data):
|
207 |
-
with Pool(processes=
|
208 |
scores = pool.map(matching_score, input_data)
|
209 |
return scores
|
210 |
|
|
|
204 |
|
205 |
|
206 |
def process_with_multiprocessing(input_data):
|
207 |
+
with Pool(processes=4) as pool:
|
208 |
scores = pool.map(matching_score, input_data)
|
209 |
return scores
|
210 |
|