def upload_files()

in backend/model_garden/services/s3.py [0:0]


  def upload_files(self, files_to_upload: Iterator[Tuple[IO, str]], bucket: str) -> None:
    with ThreadPoolExecutor() as executor:
      for future in as_completed((executor.submit(self.upload_file_obj, file_obj=file_obj, bucket=bucket, key=full_path)
                                  for file_obj, full_path in files_to_upload)):
        future.result()