staghado commited on
Commit
209d481
·
1 Parent(s): 4e597da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def fourier_transform_drawing(input_image, frames, coefficients, img_size):
83
  indices = [0] + [j for i in range(1, N + 1) for j in (i, -i)]
84
 
85
  # parallelize the computation of coefficients
86
- with ThreadPoolExecutor() as executor:
87
  print("Number of threads used:", executor._max_workers)
88
  coefs = list(executor.map(lambda n: (compute_cn(f_precomputed, n, t_values), n), indices))
89
 
 
83
  indices = [0] + [j for i in range(1, N + 1) for j in (i, -i)]
84
 
85
  # parallelize the computation of coefficients
86
+ with ThreadPoolExecutor(max_workers=8) as executor:
87
  print("Number of threads used:", executor._max_workers)
88
  coefs = list(executor.map(lambda n: (compute_cn(f_precomputed, n, t_values), n), indices))
89