Spaces:
Runtime error
Runtime error
Finish progress on error
Browse files
app.py
CHANGED
@@ -39,4 +39,5 @@ if st.button('Запуск'):
|
|
39 |
with open('output.zip', 'rb') as f:
|
40 |
st.download_button('Скачать архив', f, file_name='output.zip')
|
41 |
except Exception as e:
|
42 |
-
st.error(e)
|
|
|
|
39 |
with open('output.zip', 'rb') as f:
|
40 |
st.download_button('Скачать архив', f, file_name='output.zip')
|
41 |
except Exception as e:
|
42 |
+
st.error(e)
|
43 |
+
update_progress(1.0, 'Возникла ошибка!')
|