Delete download_files.py
Browse files- download_files.py +0 -34
download_files.py
DELETED
|
@@ -1,34 +0,0 @@
|
|
| 1 |
-
import gdown
|
| 2 |
-
import os
|
| 3 |
-
print('ENTERED THE FILE!')
|
| 4 |
-
# Define the folder ID and the destination path
|
| 5 |
-
folder_id = '17G-ejd4scK1DYko5k0ssXZjEy7P-ClI6'
|
| 6 |
-
# destination = '/path/to/downloaded/files'
|
| 7 |
-
destination = '/path/to/downloaded/files'
|
| 8 |
-
|
| 9 |
-
# Create the destination folder if it does not exist
|
| 10 |
-
os.makedirs(destination, exist_ok=True)
|
| 11 |
-
|
| 12 |
-
# Construct the URL to download all files in the folder
|
| 13 |
-
folder_url = f'https://drive.google.com/drive/folders/{folder_id}?usp=sharing'
|
| 14 |
-
|
| 15 |
-
# Download files from the folder
|
| 16 |
-
# Note: gdown does not directly support downloading entire folders; you will need to download files individually or use another tool.
|
| 17 |
-
# Alternatively, you might have to use the Google Drive API for full folder download functionality.
|
| 18 |
-
print('L1!')
|
| 19 |
-
# https://drive.google.com/file/d/1-70dV0CKQyAtb_bqoTdem9JmH7mJtTpm/view?usp=sharing
|
| 20 |
-
# Example for downloading a specific file
|
| 21 |
-
file_id = '1-70dV0CKQyAtb_bqoTdem9JmH7mJtTpm' # Replace with actual file ID
|
| 22 |
-
file_url = f'https://drive.google.com/uc?id=1-70dV0CKQyAtb_bqoTdem9JmH7mJtTpm'
|
| 23 |
-
output_path = os.path.join(destination, 'model.safetensors') # Adjust filename.ext accordingly
|
| 24 |
-
|
| 25 |
-
print('L2!')
|
| 26 |
-
# Example for downloading a specific file
|
| 27 |
-
file_id = '1-HYbeQog_ceQA6Td6sGTFHVCHuX5zJMv' # Replace with actual file ID
|
| 28 |
-
file_url = f'https://drive.google.com/uc?id=1-HYbeQog_ceQA6Td6sGTFHVCHuX5zJMv'
|
| 29 |
-
output_path = os.path.join(destination, 'tokenizer.json') # Adjust filename.ext accordingly
|
| 30 |
-
print('LD!')
|
| 31 |
-
gdown.download(file_url, output_path, quiet=False)
|
| 32 |
-
print('LDONE!')
|
| 33 |
-
if __name__ == "__main__":
|
| 34 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|