Spaces:
Running
Running
Commit
•
a6acfcb
1
Parent(s):
ff31e08
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def get_prompts_from_image(image_id):
|
|
51 |
def extract_info(json_data):
|
52 |
if json_data["type"] == "LORA":
|
53 |
for model_version in json_data["modelVersions"]:
|
54 |
-
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", "Flux.1 D", "Flux.1 S"]:
|
55 |
for file in model_version["files"]:
|
56 |
print(file)
|
57 |
if "primary" in file:
|
@@ -81,6 +81,7 @@ def extract_info(json_data):
|
|
81 |
"SD 2.0": "stabilityai/stable-diffusion-2-base",
|
82 |
"SD 2.1 768": "stabilityai/stable-diffusion-2-1",
|
83 |
"SD 2.0 768": "stabilityai/stable-diffusion-2",
|
|
|
84 |
"Flux.1 D": "black-forest-labs/FLUX.1-dev",
|
85 |
"Flux.1 S": "black-forest-labs/FLUX.1-schnell"
|
86 |
}
|
|
|
51 |
def extract_info(json_data):
|
52 |
if json_data["type"] == "LORA":
|
53 |
for model_version in json_data["modelVersions"]:
|
54 |
+
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", "SD 3", "Flux.1 D", "Flux.1 S"]:
|
55 |
for file in model_version["files"]:
|
56 |
print(file)
|
57 |
if "primary" in file:
|
|
|
81 |
"SD 2.0": "stabilityai/stable-diffusion-2-base",
|
82 |
"SD 2.1 768": "stabilityai/stable-diffusion-2-1",
|
83 |
"SD 2.0 768": "stabilityai/stable-diffusion-2",
|
84 |
+
"SD 3": "stabilityai/stable-diffusion-3-medium-diffusers",
|
85 |
"Flux.1 D": "black-forest-labs/FLUX.1-dev",
|
86 |
"Flux.1 S": "black-forest-labs/FLUX.1-schnell"
|
87 |
}
|