JMalott commited on
Commit
143c00f
1 Parent(s): ef7ae97

Update page/reduce.py

Browse files
Files changed (1) hide show
  1. page/reduce.py +9 -3
page/reduce.py CHANGED
@@ -23,7 +23,9 @@ def app():
23
 
24
  st.title('AI-Generated Architecture')
25
 
26
- st.subheader('Choose which images you would like to remove from your working set.')
 
 
27
 
28
  d = datetime.datetime.now()
29
 
@@ -34,7 +36,7 @@ def app():
34
  for ix,result in enumerate( st.session_state.results ):
35
 
36
  with st.container():
37
- col1,col2 = st.columns(2)
38
 
39
  with col1:
40
  t = st.image(result['image'])
@@ -49,13 +51,15 @@ def app():
49
 
50
 
51
  with col2:
52
- st.button("delete ", key=ix, on_click=dell, kwargs=dict(ix=ix) )
 
53
 
54
  m = st.markdown("""
55
  <hr />""", unsafe_allow_html=True)
56
 
57
  zipObj.close()
58
 
 
59
  st.download_button(
60
  label="Download images as zip",
61
  data=open('ai_architecture.zip', 'rb'),
@@ -63,3 +67,5 @@ def app():
63
  mime='application/zip'
64
  )
65
 
 
 
 
23
 
24
  st.title('AI-Generated Architecture')
25
 
26
+ st.subheader('Download your images or choose which images you would like to remove from your working set.')
27
+
28
+
29
 
30
  d = datetime.datetime.now()
31
 
 
36
  for ix,result in enumerate( st.session_state.results ):
37
 
38
  with st.container():
39
+ cols1,col2 = st.columns(2)
40
 
41
  with col1:
42
  t = st.image(result['image'])
 
51
 
52
 
53
  with col2:
54
+ if(len(st.session_state.results) > 1):
55
+ st.button("delete ", key=ix, on_click=dell, kwargs=dict(ix=ix) )
56
 
57
  m = st.markdown("""
58
  <hr />""", unsafe_allow_html=True)
59
 
60
  zipObj.close()
61
 
62
+
63
  st.download_button(
64
  label="Download images as zip",
65
  data=open('ai_architecture.zip', 'rb'),
 
67
  mime='application/zip'
68
  )
69
 
70
+
71
+