mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 02:24:59 +00:00
fix(scripts): minor fixup to gallery scripts
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
babd5cc1a0
commit
62aa3bfdb2
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ current_dir = os.path.dirname(os.path.realpath(__file__))
|
|||
|
||||
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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue