Spaces:
Runtime error
Runtime error
Commit ·
e97c302
1
Parent(s): 9d96d90
Update app.py
Browse files199 unmodified lines2002012022032042051 unmodified line207208209210211212213214215216217218199 unmodified linesunique_colors = [tuple(color) for color in unique_colors]st.session_state['unique_colors'] = unique_colorschosen_colors = st.multiselect(label="Choose which concepts you want to regenerate in the image",options=st.session_state['unique_colors'],1 unmodified linedefault=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()199 unmodified lines2002012022032042052062072082092102112121 unmodified line214215216217218219199 unmodified linesunique_colors = [tuple(color) for color in unique_colors]st.session_state['unique_colors'] = unique_colorswith 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 linedefault=st.session_state['unique_colors'],format_func=map_colors_rgb,)if st.button("generate image", key='generate_button'):image = get_image()
app.py+7-6