Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import time
|
|
7 |
import psutil
|
8 |
|
9 |
# Get the number of physical CPU cores (excluding hyperthreads)
|
10 |
-
NUM_CPU_CORES = psutil.cpu_count(logical=
|
11 |
|
12 |
# Cap the number of threads to the available physical cores
|
13 |
MAX_THREADS = min(8, NUM_CPU_CORES)
|
|
|
7 |
import psutil
|
8 |
|
9 |
# Get the number of physical CPU cores (excluding hyperthreads)
|
10 |
+
NUM_CPU_CORES = psutil.cpu_count(logical=True)
|
11 |
|
12 |
# Cap the number of threads to the available physical cores
|
13 |
MAX_THREADS = min(8, NUM_CPU_CORES)
|