Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import torch
|
|
| 10 |
from diffusers import StableDiffusion3Pipeline, DPMSolverMultistepScheduler, AutoencoderKL
|
| 11 |
from huggingface_hub import snapshot_download
|
| 12 |
|
| 13 |
-
huggingface_token = os.getenv("
|
| 14 |
|
| 15 |
model_path = snapshot_download(
|
| 16 |
repo_id="stabilityai/stable-diffusion-3-medium",
|
|
@@ -18,7 +18,7 @@ model_path = snapshot_download(
|
|
| 18 |
repo_type="model",
|
| 19 |
ignore_patterns=["*.md", "*..gitattributes"],
|
| 20 |
local_dir="stable-diffusion-3-medium",
|
| 21 |
-
token=huggingface_token,
|
| 22 |
)
|
| 23 |
|
| 24 |
DESCRIPTION = """# Stable Diffusion 3"""
|
|
|
|
| 10 |
from diffusers import StableDiffusion3Pipeline, DPMSolverMultistepScheduler, AutoencoderKL
|
| 11 |
from huggingface_hub import snapshot_download
|
| 12 |
|
| 13 |
+
huggingface_token = os.getenv("HF_TOKEN")
|
| 14 |
|
| 15 |
model_path = snapshot_download(
|
| 16 |
repo_id="stabilityai/stable-diffusion-3-medium",
|
|
|
|
| 18 |
repo_type="model",
|
| 19 |
ignore_patterns=["*.md", "*..gitattributes"],
|
| 20 |
local_dir="stable-diffusion-3-medium",
|
| 21 |
+
token=huggingface_token,
|
| 22 |
)
|
| 23 |
|
| 24 |
DESCRIPTION = """# Stable Diffusion 3"""
|