SaviAnna commited on
Commit
90d1ddf
·
1 Parent(s): 3ab4859

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,15 +22,15 @@ import gdown
22
  archive_url = 'https://drive.google.com/uc?id=14QhofCbby053kWbVeWEBHCxOROQS-bjN'
23
  # Specify the destination directory within the Hugging Face space
24
  # Download the archive
25
- output_path = 'SaviAnna/PicturesText/archive.zip'
26
- destination_dir = 'SaviAnna/PicturesText' # Replace with your desired destination directory
27
  #os.makedirs(destination_dir,exist_ok=True)
28
  # Construct the destination path
29
  #destination_path = hf_hub_url(destination_dir)
30
  # Download the archive to the destination path
31
  # cached_download(archive_url, output_path, quiet=False)
32
  gdown.download(archive_url, output_path, quiet=False)
33
- extracted_directory = 'SaviAnna/PicturesText/find_pic'
34
  # Extract the archive
35
  with zipfile.ZipFile(output_path, 'r') as zip_ref:
36
  zip_ref.extractall(extracted_directory)
 
22
  archive_url = 'https://drive.google.com/uc?id=14QhofCbby053kWbVeWEBHCxOROQS-bjN'
23
  # Specify the destination directory within the Hugging Face space
24
  # Download the archive
25
+ output_path = 'PicturesText/archive.zip'
26
+ #destination_dir = 'SaviAnna/PicturesText' # Replace with your desired destination directory
27
  #os.makedirs(destination_dir,exist_ok=True)
28
  # Construct the destination path
29
  #destination_path = hf_hub_url(destination_dir)
30
  # Download the archive to the destination path
31
  # cached_download(archive_url, output_path, quiet=False)
32
  gdown.download(archive_url, output_path, quiet=False)
33
+ extracted_directory = 'PicturesText/find_pic'
34
  # Extract the archive
35
  with zipfile.ZipFile(output_path, 'r') as zip_ref:
36
  zip_ref.extractall(extracted_directory)