Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavs10 committed Apr 27, 2023
1 parent 035d08e commit c61ee92
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions bark/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,6 @@ def _grab_best_device(use_gpu=True):
return device


S3_BUCKET_PATH_RE = r"s3\:\/\/(.+?)\/"


def _parse_s3_filepath(s3_filepath):
bucket_name = re.search(S3_BUCKET_PATH_RE, s3_filepath).group(1)
rel_s3_filepath = re.sub(S3_BUCKET_PATH_RE, "", s3_filepath)
return bucket_name, rel_s3_filepath


def _download(from_hf_path, file_name, to_local_path):
os.makedirs(CACHE_DIR, exist_ok=True)
destination_file_name = to_local_path.split("/")[-1]
Expand Down

0 comments on commit c61ee92

Please sign in to comment.