terryyz commited on
Commit
eee2e10
1 Parent(s): c0013d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 not parallel:
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