Skip to content

Commit

Permalink
fixes to check_and_update.py script (#2778)
Browse files Browse the repository at this point in the history
* fixes to `check_and_update.py`  script

---------

Signed-off-by: Dave Lee <dave@gray101.com>
  • Loading branch information
dave-gray101 authored Jul 12, 2024
1 parent f5bcba7 commit fb04347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/check_and_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit fb04347

Please sign in to comment.