awacke1 commited on
Commit
37a4497
Β·
1 Parent(s): b9ccdaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -197,12 +197,15 @@ def main():
197
  for file in all_files:
198
  col1, col3 = st.sidebar.columns([5,1]) # adjust the ratio as needed
199
  with col1:
200
- st.markdown(get_table_download_link(file), unsafe_allow_html=True)
 
 
 
201
  with col3:
202
  if st.button("πŸ—‘", key="delete_"+file):
203
  os.remove(file)
204
  st.experimental_rerun()
205
-
206
  if __name__ == "__main__":
207
  main()
208
 
 
197
  for file in all_files:
198
  col1, col3 = st.sidebar.columns([5,1]) # adjust the ratio as needed
199
  with col1:
200
+ try:
201
+ st.markdown(get_table_download_link(file), unsafe_allow_html=True)
202
+ except Exception as e:
203
+ st.error(f"Error occurred while processing file {file}: {str(e)}")
204
  with col3:
205
  if st.button("πŸ—‘", key="delete_"+file):
206
  os.remove(file)
207
  st.experimental_rerun()
208
+
209
  if __name__ == "__main__":
210
  main()
211