Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def evaluate(
|
|
105 |
no_gt: bool = False,
|
106 |
):
|
107 |
pass_k = [int(k.strip()) for k in pass_k.split(',') if k.strip().isdigit()]
|
108 |
-
if
|
109 |
n_workers = max(1, multiprocessing.cpu_count() // 2)
|
110 |
else:
|
111 |
n_workers = parallel
|
|
|
105 |
no_gt: bool = False,
|
106 |
):
|
107 |
pass_k = [int(k.strip()) for k in pass_k.split(',') if k.strip().isdigit()]
|
108 |
+
if parallel < 1:
|
109 |
n_workers = max(1, multiprocessing.cpu_count() // 2)
|
110 |
else:
|
111 |
n_workers = parallel
|