Spaces:
Runtime error
Runtime error
Commit ·
e97c302
1
Parent(s): 9d96d90
Update app.py
Browse files199 unmodified lines2002012022032042052062072082092102112121 unmodified line214215216210211212213214215217218219199 unmodified lines unique_colors = [tuple(color) for color in unique_colors] st.session_state['unique_colors'] = unique_colors
with st.expander("Explanation", expanded=True): st.write("This mode allows you to choose which objects you want to re-generate in the image. " "Use the selection dropdown to add or remove objects. If you are ready, press the generate button" " to generate the image, which can take up to 30 seconds. If you want to improve the generated image, click" " the 'move image to input' button." ) chosen_colors = st.multiselect( label="Choose which concepts you want to regenerate in the image", options=st.session_state['unique_colors'],1 unmodified line default=st.session_state['unique_colors'], format_func=map_colors_rgb, ) with st.expander("Explanation", expanded=False): st.write("This mode allows you to choose which objects you want to re-generate in the image. " "Use the selection dropdown to add or remove objects. If you are ready, press the generate button" " to generate the image, which can take up to 30 seconds. If you want to improve the generated image, click" " the 'move image to input' button." )
if st.button("generate image", key='generate_button'): image = get_image()app.py+7-6