Spaces:
Sleeping
Sleeping
Staticaliza
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,7 @@ from modules.audio import mel_spectrogram
|
|
25 |
|
26 |
# Set the number of threads to the number of CPU cores
|
27 |
torch.set_num_threads(os.cpu_count())
|
|
|
28 |
|
29 |
# Enable optimized backends
|
30 |
torch.backends.openmp.enabled = True
|
|
|
25 |
|
26 |
# Set the number of threads to the number of CPU cores
|
27 |
torch.set_num_threads(os.cpu_count())
|
28 |
+
torch.set_num_interop_threads(os.cpu_count())
|
29 |
|
30 |
# Enable optimized backends
|
31 |
torch.backends.openmp.enabled = True
|