Spaces:
Runtime error
Runtime error
Commit
·
fc8546c
1
Parent(s):
251a915
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def process_sketch(image, binary_matrixes):
|
|
21 |
if any(c != 255 for c in (r, g, b)):
|
22 |
binary_matrix = create_binary_matrix(im2arr, (r,g,b))
|
23 |
binary_matrixes.append(binary_matrix)
|
24 |
-
colors_fixed.append(gr.update(value=f'<div style="display:flex;align-items: center;justify-content: center"><img width="20%" src="file/{binary_matrix}" /><div class="color-bg-item" style="background-color: rgb({r},{g},{b})"></div></div>'))
|
25 |
visibilities = []
|
26 |
colors = []
|
27 |
for n in range(MAX_COLORS):
|
|
|
21 |
if any(c != 255 for c in (r, g, b)):
|
22 |
binary_matrix = create_binary_matrix(im2arr, (r,g,b))
|
23 |
binary_matrixes.append(binary_matrix)
|
24 |
+
colors_fixed.append(gr.update(value=f'<div style="display:flex;align-items: center;justify-content: center"><img width="20%" style="margin-right: 1em" src="file/{binary_matrix}" /><div class="color-bg-item" style="background-color: rgb({r},{g},{b})"></div></div>'))
|
25 |
visibilities = []
|
26 |
colors = []
|
27 |
for n in range(MAX_COLORS):
|