Spaces:
Runtime error
Runtime error
Daniel Verdu
commited on
Commit
•
19189d6
1
Parent(s):
1250311
added progress bar
Browse files
app.py
CHANGED
@@ -210,6 +210,7 @@ st.markdown("This app puts color into your black and white pictures")
|
|
210 |
st_title_message = st.empty()
|
211 |
st_progress_bar = st.empty()
|
212 |
st_file_uploader = st.empty()
|
|
|
213 |
st_input_img = st.empty()
|
214 |
st_output_img = st.empty()
|
215 |
st_download_button = st.empty()
|
@@ -244,7 +245,7 @@ if colorizer is not None:
|
|
244 |
uploaded_files = st_file_uploader.file_uploader("Upload a black and white photo",
|
245 |
type=['png', 'jpg', 'jpeg'],
|
246 |
accept_multiple_files=True)
|
247 |
-
submitted =
|
248 |
|
249 |
if submitted and uploaded_files is not None:
|
250 |
if len(uploaded_files) == 1:
|
|
|
210 |
st_title_message = st.empty()
|
211 |
st_progress_bar = st.empty()
|
212 |
st_file_uploader = st.empty()
|
213 |
+
st_submit_button = st.empty()
|
214 |
st_input_img = st.empty()
|
215 |
st_output_img = st.empty()
|
216 |
st_download_button = st.empty()
|
|
|
245 |
uploaded_files = st_file_uploader.file_uploader("Upload a black and white photo",
|
246 |
type=['png', 'jpg', 'jpeg'],
|
247 |
accept_multiple_files=True)
|
248 |
+
submitted = st_submit_button.form_submit_button("UPLOAD!")
|
249 |
|
250 |
if submitted and uploaded_files is not None:
|
251 |
if len(uploaded_files) == 1:
|