Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ DEFAULT_WIDTH = 1024
|
|
32 |
|
33 |
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {HF_TOKEN}" }
|
34 |
|
35 |
-
repo_large_path = snapshot_download(repo_id="stabilityai/stable-diffusion-3-medium", revision="refs/pr/26",
|
36 |
-
repo_large_transformer_path = SD3Transformer2DModel.from_pretrained(repo_large_path, torch_dtype=torch.float16)
|
37 |
repo_large_transformer = PeftModel.from_pretrained(repo_large_transformer_path, "jasperai/flash-sd3")
|
38 |
|
39 |
css = '''
|
|
|
32 |
|
33 |
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {HF_TOKEN}" }
|
34 |
|
35 |
+
repo_large_path = snapshot_download(repo_id="stabilityai/stable-diffusion-3-medium", revision="refs/pr/26", token=HF_TOKEN)
|
36 |
+
repo_large_transformer_path = SD3Transformer2DModel.from_pretrained(repo_large_path, subfolder="transformer", torch_dtype=torch.float16)
|
37 |
repo_large_transformer = PeftModel.from_pretrained(repo_large_transformer_path, "jasperai/flash-sd3")
|
38 |
|
39 |
css = '''
|