Spaces:
Runtime error
Runtime error
glass style
Browse files
app.py
CHANGED
|
@@ -43,13 +43,12 @@ def get_colors(pimg):
|
|
| 43 |
ordered_colors = [center_colors[i] for i in counts.keys()]
|
| 44 |
hex_colors = [RGB2HEX(ordered_colors[i]) for i in counts.keys()]
|
| 45 |
#rgb_colors = [ordered_colors[i] for i in counts.keys()]
|
| 46 |
-
print(hex_colors)
|
| 47 |
return hex_colors
|
| 48 |
|
| 49 |
|
| 50 |
# demo = gr.Blocks()
|
| 51 |
|
| 52 |
-
with gr.Blocks(theme=gr.themes.
|
| 53 |
gr.Markdown(
|
| 54 |
"""
|
| 55 |
# Extract Colors from an image using KMeans clustering
|
|
|
|
| 43 |
ordered_colors = [center_colors[i] for i in counts.keys()]
|
| 44 |
hex_colors = [RGB2HEX(ordered_colors[i]) for i in counts.keys()]
|
| 45 |
#rgb_colors = [ordered_colors[i] for i in counts.keys()]
|
|
|
|
| 46 |
return hex_colors
|
| 47 |
|
| 48 |
|
| 49 |
# demo = gr.Blocks()
|
| 50 |
|
| 51 |
+
with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
| 52 |
gr.Markdown(
|
| 53 |
"""
|
| 54 |
# Extract Colors from an image using KMeans clustering
|