Spaces:
Running
on
Zero
Running
on
Zero
use hf token
Browse files
src/flair/pipelines/model_loader.py
CHANGED
|
@@ -11,7 +11,11 @@ from diffusers import AutoencoderTiny
|
|
| 11 |
|
| 12 |
|
| 13 |
from src.flair.pipelines import sd3
|
|
|
|
|
|
|
| 14 |
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
@torch.no_grad()
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
from src.flair.pipelines import sd3
|
| 14 |
+
import os
|
| 15 |
+
from huggingface_hub import login
|
| 16 |
|
| 17 |
+
# If you really want an explicit login call:
|
| 18 |
+
login(token=os.environ["hf_token"])
|
| 19 |
|
| 20 |
|
| 21 |
@torch.no_grad()
|