Spaces:
Runtime error
Runtime error
Commit
·
8604dfb
1
Parent(s):
d0613b1
chosen colors
Browse files
app.py
CHANGED
|
@@ -166,10 +166,10 @@ def make_editing_canvas(canvas_color, brush, _reset_state, generation_mode, pain
|
|
| 166 |
chosen_colors = st.multiselect(
|
| 167 |
label="Choose colors",
|
| 168 |
options=st.session_state['unique_colors'],
|
| 169 |
-
|
| 170 |
-
key='unique_colors',
|
| 171 |
format_func=map_colors_rgb
|
| 172 |
)
|
|
|
|
| 173 |
|
| 174 |
if st.button("generate image", key='generate_button'):
|
| 175 |
image = get_image()
|
|
|
|
| 166 |
chosen_colors = st.multiselect(
|
| 167 |
label="Choose colors",
|
| 168 |
options=st.session_state['unique_colors'],
|
| 169 |
+
key='chosen_colors',
|
|
|
|
| 170 |
format_func=map_colors_rgb
|
| 171 |
)
|
| 172 |
+
print(st.session_state['unique_colors'])
|
| 173 |
|
| 174 |
if st.button("generate image", key='generate_button'):
|
| 175 |
image = get_image()
|