Skip to content

Commit

Permalink
29 - Added compatibility with single file downloads
Browse files Browse the repository at this point in the history
Signed-off-by: julianbollig <[email protected]>
  • Loading branch information
julianbollig committed Nov 29, 2024
1 parent 9df3fe2 commit 96b98d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/model_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def init_download(self, file: HFDonloadItem):

def is_access_granted(self, repo_id: str, model_type, backend : str):

repo_id = utils.trim_repo(repo_id)
headers={}
if (self.hf_token is not None):
headers["Authorization"] = f"Bearer {self.hf_token}"
Expand Down

0 comments on commit 96b98d0

Please sign in to comment.