xJuuzouYTx
commited on
Commit
•
91bc9e7
1
Parent(s):
af36c4d
[FIX] drive download path
Browse files- utils/model.py +1 -1
utils/model.py
CHANGED
@@ -22,7 +22,7 @@ def model_downloader(url, zip_path, dest_path):
|
|
22 |
print(f"Descargando desde drive...")
|
23 |
try:
|
24 |
filename = gdown.download(url, os.path.join(dest_folder, f"{uuid.uuid4()}.zip"), fuzzy=True)
|
25 |
-
return filename
|
26 |
except:
|
27 |
print("El intento de descargar con drive no funcionó")
|
28 |
return None
|
|
|
22 |
print(f"Descargando desde drive...")
|
23 |
try:
|
24 |
filename = gdown.download(url, os.path.join(dest_folder, f"{uuid.uuid4()}.zip"), fuzzy=True)
|
25 |
+
return os.path.basename(filename)
|
26 |
except:
|
27 |
print("El intento de descargar con drive no funcionó")
|
28 |
return None
|