Spaces:
Running
Running
Update app.py
Browse files
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 |
|