hemantn commited on
Commit
3aa0051
·
1 Parent(s): 6db1bf7

Prioritize current directory for utility files to use downloaded files from Hugging Face

Browse files
Files changed (1) hide show
  1. adapter.py +1 -0
adapter.py CHANGED
@@ -391,6 +391,7 @@ def ensure_utility_files_available():
391
  # Try to find the repository root (where all utility files are)
392
  # Look for common parent directories that might contain the files
393
  possible_paths = [
 
394
  os.path.join(current_dir, '..'), # Parent directory
395
  os.path.join(current_dir, '..', '..'), # Grandparent directory
396
  os.path.join(current_dir, '..', '..', '..'), # Great-grandparent directory
 
391
  # Try to find the repository root (where all utility files are)
392
  # Look for common parent directories that might contain the files
393
  possible_paths = [
394
+ current_dir, # Current directory (where model files are downloaded)
395
  os.path.join(current_dir, '..'), # Parent directory
396
  os.path.join(current_dir, '..', '..'), # Grandparent directory
397
  os.path.join(current_dir, '..', '..', '..'), # Great-grandparent directory