Spaces:
Runtime error
Runtime error
Commit ·
161c8b5
1
Parent(s): 1af0054
add content
Browse filesFiles changed (6)
36 unmodified lines3738394041424336 unmodified linescontent/inpainting_before.jpg filter=lfs diff=lfs merge=lfs -textcontent/inpainting_sidebar.png filter=lfs diff=lfs merge=lfs -textcontent/regen_example.png filter=lfs diff=lfs merge=lfs -textcontent/example_0.png filter=lfs diff=lfs merge=lfs -textcontent/example_1.jpg filter=lfs diff=lfs merge=lfs -textcontent/output_0.png filter=lfs diff=lfs merge=lfs -textcontent/output_1.png filter=lfs diff=lfs merge=lfs -text293 unmodified lines294295296297298299299300301302303304305300301302303304305306307308309310311312313314315316317318319320321322323293 unmodified lines ) st.write("### Testing images") st.write("If you don't have any pictures close, you can use one of these images to test the model:") st.session_state['example_image_0'] = Image.open("content/example_0.png") st.session_state['example_image_1'] = Image.open("content/example_1.jpg") st.image(st.session_state['example_image_0'], caption="Example image 1", use_column_width=True) if st.button("Use example 1"): move_image('example_image_0', 'initial_image', remove_state=True, rerun=True)
st.image(st.session_state['example_image_1'], caption="Example image 2", use_column_width=True) if st.button("Use example 2"): move_image('example_image_1', 'initial_image', remove_state=True, rerun=True) col_im_0, col_im_1 = st.columns(2) with col_im_0: st.image(st.session_state['example_image_0'], caption="Example image 1", use_column_width=True) if st.button("Use example 1"): move_image('example_image_0', 'input_image', remove_state=True, rerun=False) move_image('example_image_0', 'initial_image', remove_state=True, rerun=True) with col_im_1: st.image(st.session_state['example_image_1'], caption="Example image 2", use_column_width=True) if st.button("Use example 2"): move_image('example_image_1', 'input_image', remove_state=True, rerun=False) move_image('example_image_1', 'initial_image', remove_state=True, rerun=True) st.write("## Generated examples") col_ex_0, col_ex_1 = st.columns(2) with col_ex_0: st.image(Image.open("content/output_1.png"), caption="Generated example 1, regenerating certain objects in the room", use_column_width=True) with col_ex_1: st.image(Image.open("content/output_0.png"), caption="Generated example 1, regenerating certain objects in the room", use_column_width=True) else: make_prompt_row()
.gitattributes+4
app.py+22-7
content/example_0.png


content/example_1.jpg


content/output_0.pngAdded

Large File Pointer Details
- SHA256: 45133c135683dd1f77e49ac316e3ba8d4a52ab6a4cabb169482e536708c03d89
- Pointer size: 132 Bytes
- Size of remote file: 1.86 MB
content/output_1.pngAdded

Large File Pointer Details
- SHA256: 03b06016d5eff15152d49903c7d810a484e5b783c70c2bb0e5c3b1619a00ec86
- Pointer size: 132 Bytes
- Size of remote file: 1.95 MB