From fb04347d3bf024d35e411be72aae834710bf6b53 Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 12 Jul 2024 02:40:45 -0400 Subject: [PATCH] fixes to `check_and_update.py` script (#2778) * fixes to `check_and_update.py` script --------- Signed-off-by: Dave Lee --- .github/check_and_update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/check_and_update.py b/.github/check_and_update.py index 448844fd..dcf1d04a 100644 --- a/.github/check_and_update.py +++ b/.github/check_and_update.py @@ -4,7 +4,7 @@ import requests import sys import os -uri = sys.argv[0] +uri = sys.argv[1] file_name = uri.split('/')[-1] # Function to parse the URI and determine download method @@ -36,6 +36,7 @@ def manual_safety_check_hf(repo_id): download_type, repo_id_or_url = parse_uri(uri) new_checksum = None +file_path = None # Decide download method based on URI type if download_type == 'huggingface':