viboognesh commited on
Commit
ca303d5
·
verified ·
1 Parent(s): 11968ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -68,7 +68,9 @@ def download_files_from_s3(bucket_name, local_folder, file_path_list):
68
  st.markdown(f"Downloaded: {local_path}")
69
  except Exception as e:
70
  st.error(f"Error downloading {key}: {e}")
71
-
 
 
72
  except NoCredentialsError:
73
  st.error("No AWS credentials found.")
74
  except Exception as e:
 
68
  st.markdown(f"Downloaded: {local_path}")
69
  except Exception as e:
70
  st.error(f"Error downloading {key}: {e}")
71
+ for path in file_path_list:
72
+ if not os.path.isfile(os.path.join(local_folder, path)):
73
+ st.error(f"Failed to download file {path}")
74
  except NoCredentialsError:
75
  st.error("No AWS credentials found.")
76
  except Exception as e: