Spaces:
Running
Running
Commit
·
2932529
1
Parent(s):
ec4bc2b
Add application file
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def replace_color(image, color_1, blur_radius=2):
|
|
52 |
while np.any(matches):
|
53 |
new_matches = np.zeros_like(matches)
|
54 |
match_num = np.sum(matches)
|
55 |
-
for i in
|
56 |
if matches[i]:
|
57 |
x, y = divmod(i, original_shape[1])
|
58 |
neighbors = [
|
|
|
52 |
while np.any(matches):
|
53 |
new_matches = np.zeros_like(matches)
|
54 |
match_num = np.sum(matches)
|
55 |
+
for i in range(len(data)): # Removed tqdm
|
56 |
if matches[i]:
|
57 |
x, y = divmod(i, original_shape[1])
|
58 |
neighbors = [
|