Spaces:
Runtime error
Runtime error
BertChristiaens
commited on
Commit
•
32be5ef
1
Parent(s):
f42f3a8
fix images
Browse files- .gitattributes +1 -0
- app.py +5 -0
- content/example_3.jpg +3 -0
.gitattributes
CHANGED
@@ -49,3 +49,4 @@ content/example_2.jpg filter=lfs diff=lfs merge=lfs -text
|
|
49 |
content/keep[[:space:]]background[[:space:]]1.png filter=lfs diff=lfs merge=lfs -text
|
50 |
content/keep[[:space:]]background[[:space:]]2.png filter=lfs diff=lfs merge=lfs -text
|
51 |
content/output_2.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
49 |
content/keep[[:space:]]background[[:space:]]1.png filter=lfs diff=lfs merge=lfs -text
|
50 |
content/keep[[:space:]]background[[:space:]]2.png filter=lfs diff=lfs merge=lfs -text
|
51 |
content/output_2.png filter=lfs diff=lfs merge=lfs -text
|
52 |
+
content/example_3.jpg filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -323,6 +323,7 @@ def main():
|
|
323 |
st.session_state['example_image_0'] = Image.open("content/example_0.png")
|
324 |
st.session_state['example_image_1'] = Image.open("content/example_1.jpg")
|
325 |
st.session_state['example_image_2'] = Image.open("content/example_2.jpg")
|
|
|
326 |
|
327 |
col_im_0, col_im_1 = st.columns(2)
|
328 |
|
@@ -338,6 +339,10 @@ def main():
|
|
338 |
st.image(st.session_state['example_image_1'], caption="Example image 2", use_column_width=True)
|
339 |
if st.button("Use example 2"):
|
340 |
move_image('example_image_1', 'initial_image', remove_state=True, rerun=True)
|
|
|
|
|
|
|
|
|
341 |
|
342 |
st.write("## Generated examples")
|
343 |
col_ex_0, col_ex_1 = st.columns(2)
|
|
|
323 |
st.session_state['example_image_0'] = Image.open("content/example_0.png")
|
324 |
st.session_state['example_image_1'] = Image.open("content/example_1.jpg")
|
325 |
st.session_state['example_image_2'] = Image.open("content/example_2.jpg")
|
326 |
+
st.session_state['example_image_3'] = Image.open("content/example_3.jpg")
|
327 |
|
328 |
col_im_0, col_im_1 = st.columns(2)
|
329 |
|
|
|
339 |
st.image(st.session_state['example_image_1'], caption="Example image 2", use_column_width=True)
|
340 |
if st.button("Use example 2"):
|
341 |
move_image('example_image_1', 'initial_image', remove_state=True, rerun=True)
|
342 |
+
|
343 |
+
st.image(st.session_state['example_image_3'], caption="Example image 4", use_column_width=True)
|
344 |
+
if st.button("Use example 4"):
|
345 |
+
move_image('example_image_3', 'initial_image', remove_state=True, rerun=True)
|
346 |
|
347 |
st.write("## Generated examples")
|
348 |
col_ex_0, col_ex_1 = st.columns(2)
|
content/example_3.jpg
ADDED
Git LFS Details
|