Darknsu commited on
Commit
0b97748
·
verified ·
1 Parent(s): 3974320

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -418,7 +418,7 @@ def download_npz_file(video_name: str) -> str:
418
  """
419
  try:
420
  # Construct the file path in the dataset repo
421
- file_path = f"{HF_DATASET_SUBFOLDER}/{video_name}.npz"
422
 
423
  # Check if file already exists in cache
424
  local_path = os.path.join(CACHE_DIR, f"{video_name}.npz")
@@ -455,7 +455,7 @@ def get_available_videos_from_hf():
455
  # Filter for .npz files in the I3D subfolder
456
  videos = []
457
  for file in files:
458
- if file.startswith(f"{HF_DATASET_SUBFOLDER}/") and file.endswith('.npz'):
459
  # Extract the full filename without extension
460
  # For files like "I3D/OP02-R02-TurkeySandwich.npz"
461
  video_name = os.path.basename(file).replace('.npz', '')
 
418
  """
419
  try:
420
  # Construct the file path in the dataset repo
421
+ file_path = f"{video_name}.npz"
422
 
423
  # Check if file already exists in cache
424
  local_path = os.path.join(CACHE_DIR, f"{video_name}.npz")
 
455
  # Filter for .npz files in the I3D subfolder
456
  videos = []
457
  for file in files:
458
+ if file.startswith(f"") and file.endswith('.npz'):
459
  # Extract the full filename without extension
460
  # For files like "I3D/OP02-R02-TurkeySandwich.npz"
461
  video_name = os.path.basename(file).replace('.npz', '')