Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,12 @@ from pipeline_fill_sd_xl import StableDiffusionXLFillPipeline
|
|
11 |
|
12 |
from PIL import Image, ImageDraw
|
13 |
import numpy as np
|
|
|
14 |
|
|
|
|
|
|
|
|
|
15 |
config_file = hf_hub_download(
|
16 |
"xinsir/controlnet-union-sdxl-1.0",
|
17 |
filename="config_promax.json",
|
|
|
11 |
|
12 |
from PIL import Image, ImageDraw
|
13 |
import numpy as np
|
14 |
+
import os
|
15 |
|
16 |
+
hf_token = os.getenv('HF_TOKEN')
|
17 |
+
|
18 |
+
from huggingface_hub import login
|
19 |
+
login(token=hf_token)
|
20 |
config_file = hf_hub_download(
|
21 |
"xinsir/controlnet-union-sdxl-1.0",
|
22 |
filename="config_promax.json",
|