Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@
|
|
17 |
import os
|
18 |
import zipfile
|
19 |
from huggingface_hub import hf_hub_url, cached_download
|
|
|
20 |
# Specify the Google Drive link to the archive file
|
21 |
archive_url = 'https://drive.google.com/uc?id=14QhofCbby053kWbVeWEBHCxOROQS-bjN'
|
22 |
# Specify the destination directory within the Hugging Face space
|
@@ -27,7 +28,8 @@ destination_dir = 'SaviAnna/PicturesText' # Replace with your desired destinati
|
|
27 |
# Construct the destination path
|
28 |
#destination_path = hf_hub_url(destination_dir)
|
29 |
# Download the archive to the destination path
|
30 |
-
cached_download(archive_url, output_path, quiet=False)
|
|
|
31 |
extracted_directory = 'SaviAnna/PicturesText/find_pic'
|
32 |
# Extract the archive
|
33 |
with zipfile.ZipFile(output_path, 'r') as zip_ref:
|
|
|
17 |
import os
|
18 |
import zipfile
|
19 |
from huggingface_hub import hf_hub_url, cached_download
|
20 |
+
import gdown
|
21 |
# Specify the Google Drive link to the archive file
|
22 |
archive_url = 'https://drive.google.com/uc?id=14QhofCbby053kWbVeWEBHCxOROQS-bjN'
|
23 |
# Specify the destination directory within the Hugging Face space
|
|
|
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:
|