Spaces:
Running on Zero
Running on Zero
Commit ·
2e15546
1
Parent(s): f860bab
Real model previews: generated SD1.5/SDXL samples + official FLUX grid (#7)
Browse files- Real model previews: generated SD1.5/SDXL samples + official FLUX grid (1568beef4be95e5406b6b47659e5a10457c293ef)
Co-authored-by: pormungtailaw <pormungtai@users.noreply.huggingface.co>
- app.py +2 -1
- models.json +3 -3
- previews/flux-schnell.webp +0 -0
- previews/sd15-realistic-base.webp +0 -0
- previews/sdxl-base.webp +0 -0
app.py
CHANGED
|
@@ -232,4 +232,5 @@ with gr.Blocks(css=CSS, theme=gr.themes.Soft(primary_hue="blue"),
|
|
| 232 |
|
| 233 |
|
| 234 |
if __name__ == "__main__":
|
| 235 |
-
|
|
|
|
|
|
| 232 |
|
| 233 |
|
| 234 |
if __name__ == "__main__":
|
| 235 |
+
# allowed_paths lets Gradio serve the local model preview thumbnails.
|
| 236 |
+
demo.queue(max_size=12).launch(allowed_paths=["previews"])
|
models.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
"type": "checkpoint",
|
| 10 |
"repo_id": "stable-diffusion-v1-5/stable-diffusion-v1-5",
|
| 11 |
"single_file_url": null,
|
| 12 |
-
"preview": "
|
| 13 |
"trigger": "",
|
| 14 |
"recommended_prompt": "RAW photo, a beautiful woman, detailed skin, soft lighting, 50mm, depth of field",
|
| 15 |
"negative_prompt": "(worst quality, low quality:1.4), deformed, extra fingers, watermark, text",
|
|
@@ -57,7 +57,7 @@
|
|
| 57 |
"type": "checkpoint",
|
| 58 |
"repo_id": "stabilityai/stable-diffusion-xl-base-1.0",
|
| 59 |
"single_file_url": null,
|
| 60 |
-
"preview": "
|
| 61 |
"trigger": "",
|
| 62 |
"recommended_prompt": "cinematic photo of a beautiful woman, 35mm, highly detailed, soft natural light",
|
| 63 |
"negative_prompt": "lowres, bad anatomy, worst quality, watermark, text",
|
|
@@ -72,7 +72,7 @@
|
|
| 72 |
"type": "checkpoint",
|
| 73 |
"repo_id": "black-forest-labs/FLUX.1-schnell",
|
| 74 |
"single_file_url": null,
|
| 75 |
-
"preview": "
|
| 76 |
"trigger": "",
|
| 77 |
"recommended_prompt": "a photorealistic portrait of a young woman, studio light, sharp focus, ultra detailed",
|
| 78 |
"negative_prompt": "",
|
|
|
|
| 9 |
"type": "checkpoint",
|
| 10 |
"repo_id": "stable-diffusion-v1-5/stable-diffusion-v1-5",
|
| 11 |
"single_file_url": null,
|
| 12 |
+
"preview": "previews/sd15-realistic-base.webp",
|
| 13 |
"trigger": "",
|
| 14 |
"recommended_prompt": "RAW photo, a beautiful woman, detailed skin, soft lighting, 50mm, depth of field",
|
| 15 |
"negative_prompt": "(worst quality, low quality:1.4), deformed, extra fingers, watermark, text",
|
|
|
|
| 57 |
"type": "checkpoint",
|
| 58 |
"repo_id": "stabilityai/stable-diffusion-xl-base-1.0",
|
| 59 |
"single_file_url": null,
|
| 60 |
+
"preview": "previews/sdxl-base.webp",
|
| 61 |
"trigger": "",
|
| 62 |
"recommended_prompt": "cinematic photo of a beautiful woman, 35mm, highly detailed, soft natural light",
|
| 63 |
"negative_prompt": "lowres, bad anatomy, worst quality, watermark, text",
|
|
|
|
| 72 |
"type": "checkpoint",
|
| 73 |
"repo_id": "black-forest-labs/FLUX.1-schnell",
|
| 74 |
"single_file_url": null,
|
| 75 |
+
"preview": "previews/flux-schnell.webp",
|
| 76 |
"trigger": "",
|
| 77 |
"recommended_prompt": "a photorealistic portrait of a young woman, studio light, sharp focus, ultra detailed",
|
| 78 |
"negative_prompt": "",
|
previews/flux-schnell.webp
ADDED
|
previews/sd15-realistic-base.webp
ADDED
|
previews/sdxl-base.webp
ADDED
|