akryldigital commited on
Commit
a3bed24
·
verified ·
1 Parent(s): 4f7d237

configure OMP_NUM_THREADS

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -17,6 +17,9 @@ try:
17
  threads = int(cleaned)
18
  if threads <= 0:
19
  os.environ["OMP_NUM_THREADS"] = "1"
 
 
 
20
  else:
21
  os.environ["OMP_NUM_THREADS"] = "1"
22
  else:
 
17
  threads = int(cleaned)
18
  if threads <= 0:
19
  os.environ["OMP_NUM_THREADS"] = "1"
20
+ else:
21
+ # Set the cleaned integer value back
22
+ os.environ["OMP_NUM_THREADS"] = str(threads)
23
  else:
24
  os.environ["OMP_NUM_THREADS"] = "1"
25
  else: