Skip to content

Commit

Permalink
Update hf.py: Add file_url arg
Browse files Browse the repository at this point in the history
  • Loading branch information
rabilrbl authored Jan 4, 2024
1 parent ab31e12 commit 8c5b158
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
from huggingface_hub import HfApi,login, logout
api = HfApi()

repo = sys.argv[1]
file = sys.argv[2]
file_url = sys.argv[1]
repo = sys.argv[2]
file = sys.argv[3]

token = os.environ.get("HF_TOKEN", None)

Expand Down Expand Up @@ -45,7 +46,7 @@ def extract_repo_id(file_url):
tags:
- llamafile
- GGUF
base_model: {extract_repo_id(file)}
base_model: {extract_repo_id(file_url)}
---
## {"".join(repo.split("/")[1:])}
Expand Down

0 comments on commit 8c5b158

Please sign in to comment.