Spaces:
Runtime error
Runtime error
Update src/v2_for_hf.py
Browse files- src/v2_for_hf.py +3 -0
src/v2_for_hf.py
CHANGED
@@ -6,7 +6,10 @@ import re
|
|
6 |
from diffusers import DiffusionPipeline
|
7 |
import torch
|
8 |
from PIL import Image
|
|
|
9 |
import os
|
|
|
|
|
10 |
|
11 |
# Modfiy this to change the number of generations
|
12 |
NUM_GEN = 2
|
|
|
6 |
from diffusers import DiffusionPipeline
|
7 |
import torch
|
8 |
from PIL import Image
|
9 |
+
|
10 |
import os
|
11 |
+
from huggingface_hub import login
|
12 |
+
login(token=os.environ.get("HF_token"))
|
13 |
|
14 |
# Modfiy this to change the number of generations
|
15 |
NUM_GEN = 2
|