Staticaliza commited on
Commit
7cd73f4
·
verified ·
1 Parent(s): 1ec5128

Update app.py

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