Skip to content

Commit

Permalink
fix(scripts): minor fixup to gallery scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler committed Jul 13, 2024
1 parent babd5cc commit 62aa3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/latest_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def get_latest_model():
search_term = "GGUF"
if sys.argv[1]:
if len(sys.argv) > 2 and sys.argv[1]:
search_term = sys.argv[1]
url = "https://huggingface.co/api/models"
params = {"sort": "lastModified", "direction": -1, "limit": 30, "search": search_term}
Expand Down

0 comments on commit 62aa3bf

Please sign in to comment.