SaviAnna commited on
Commit
fcb86fe
·
1 Parent(s): ef6c8f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -60,9 +60,10 @@ os.makedirs(destination_dir, exist_ok=True)
60
 
61
  # Download the archive to the destination directory
62
  #cached_download(archive_url, destination_dir)
63
- archive_file = hf_hub_download(url=archive_url, destination=destination_dir)
64
  # Extract the archive
65
- #archive_file = os.path.join(destination_dir, 'archive.zip')
 
66
  extracted_directory = os.path.join(destination_dir, 'find_pic')
67
 
68
  with zipfile.ZipFile(archive_file, 'r') as zip_ref:
 
60
 
61
  # Download the archive to the destination directory
62
  #cached_download(archive_url, destination_dir)
63
+ #archive_file = hf_hub_download(url=archive_url, destination=destination_dir)
64
  # Extract the archive
65
+ archive_file = os.path.join(destination_dir, 'archive.zip')
66
+ cached_download(archive_file)
67
  extracted_directory = os.path.join(destination_dir, 'find_pic')
68
 
69
  with zipfile.ZipFile(archive_file, 'r') as zip_ref: