Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ repo_id = "CaxtonEmeraldS/CholesterolConcentrationPredictor" # Replace with you
|
|
13 |
unzip_dir = "unzipped_models"
|
14 |
if not os.path.exists(unzip_dir):
|
15 |
print("Downloading and extracting model zip file...")
|
16 |
-
zip_path = hf_hub_download(repo_id=repo_id, filename="Models.zip") # Replace with your actual uploaded ZIP filename
|
17 |
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
18 |
zip_ref.extractall(unzip_dir)
|
19 |
print("Extraction complete.")
|
|
|
13 |
unzip_dir = "unzipped_models"
|
14 |
if not os.path.exists(unzip_dir):
|
15 |
print("Downloading and extracting model zip file...")
|
16 |
+
zip_path = hf_hub_download(repo_id=os.path.join('spaces', repo_id), filename="Models.zip") # Replace with your actual uploaded ZIP filename
|
17 |
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
18 |
zip_ref.extractall(unzip_dir)
|
19 |
print("Extraction complete.")
|