Spaces:
Running
Running
Commit
•
cd865fc
1
Parent(s):
8dddfec
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,8 @@ def extract_info(json_data):
|
|
56 |
for model_version in json_data["modelVersions"]:
|
57 |
if model_version["baseModel"] in ["SDXL 1.0", "SDXL 0.9", "SD 1.5", "SD 1.4", "SD 2.1", "SD 2.0", "SD 2.0 768", "SD 2.1 768"]:
|
58 |
for file in model_version["files"]:
|
59 |
-
|
|
|
60 |
# Start by adding the primary file to the list
|
61 |
urls_to_download = [{"url": file["downloadUrl"], "filename": file["name"], "type": "weightName"}]
|
62 |
|
|
|
56 |
for model_version in json_data["modelVersions"]:
|
57 |
if model_version["baseModel"] in ["SDXL 1.0", "SDXL 0.9", "SD 1.5", "SD 1.4", "SD 2.1", "SD 2.0", "SD 2.0 768", "SD 2.1 768"]:
|
58 |
for file in model_version["files"]:
|
59 |
+
print(file)
|
60 |
+
if "primary" in file:
|
61 |
# Start by adding the primary file to the list
|
62 |
urls_to_download = [{"url": file["downloadUrl"], "filename": file["name"], "type": "weightName"}]
|
63 |
|