Spaces:
Runtime error
Runtime error
muhammadzain
commited on
Commit
·
1f0b891
1
Parent(s):
f94d6be
Update app.py
Browse files
app.py
CHANGED
@@ -232,7 +232,7 @@ with col2:
|
|
232 |
|
233 |
|
234 |
|
235 |
-
if st.button(
|
236 |
if st.session_state.get('opt1') == True:
|
237 |
task = st.session_state.opt1_selBox
|
238 |
else:
|
@@ -249,10 +249,10 @@ with col2:
|
|
249 |
st.session_state.disable_download = True
|
250 |
|
251 |
if st.session_state.disable_download == True:
|
252 |
-
st.button(13*" "+"DOWNLOAD
|
253 |
else:
|
254 |
with open('processed_'+file.name, "rb") as download_file:
|
255 |
-
st.download_button(label=13*" "+"DOWNLOAD
|
256 |
file_name= 'processed_'+file.name, mime= "image/png",
|
257 |
disabled=st.session_state.disable_download)
|
258 |
|
|
|
232 |
|
233 |
|
234 |
|
235 |
+
if st.button(15*" "+"PROCEED"+" "*15,disabled=st.session_state.disable_proceed) and file is not None:
|
236 |
if st.session_state.get('opt1') == True:
|
237 |
task = st.session_state.opt1_selBox
|
238 |
else:
|
|
|
249 |
st.session_state.disable_download = True
|
250 |
|
251 |
if st.session_state.disable_download == True:
|
252 |
+
st.button(13*" "+"DOWNLOAD"+" "*13,disabled=True)
|
253 |
else:
|
254 |
with open('processed_'+file.name, "rb") as download_file:
|
255 |
+
st.download_button(label=13*" "+"DOWNLOAD"+" "*13, data=download_file,
|
256 |
file_name= 'processed_'+file.name, mime= "image/png",
|
257 |
disabled=st.session_state.disable_download)
|
258 |
|