Spaces:
Runtime error
Runtime error
Update page/reduce.py
Browse files- page/reduce.py +9 -0
page/reduce.py
CHANGED
@@ -33,6 +33,15 @@ def app():
|
|
33 |
|
34 |
deleteButtons = []
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
for ix,result in enumerate( st.session_state.results ):
|
37 |
|
38 |
with st.container():
|
|
|
33 |
|
34 |
deleteButtons = []
|
35 |
|
36 |
+
if(len(st.session_state.results) >= 3):
|
37 |
+
st.download_button(
|
38 |
+
label="Download images as zip",
|
39 |
+
data=open('ai_architecture.zip', 'rb'),
|
40 |
+
file_name='ai_architecture '+d.strftime("%m-%d-%Y")+'.zip',
|
41 |
+
mime='application/zip',
|
42 |
+
key="top_button"
|
43 |
+
)
|
44 |
+
|
45 |
for ix,result in enumerate( st.session_state.results ):
|
46 |
|
47 |
with st.container():
|