Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import sys
|
|
10 |
from diffusers.utils import load_image
|
11 |
from diffusers import EulerDiscreteScheduler, T2IAdapter
|
12 |
|
13 |
-
from huggingface_hub import hf_hub_download
|
14 |
import gradio as gr
|
15 |
|
16 |
from pipeline_t2i_adapter import PhotoMakerStableDiffusionXLAdapterPipeline
|
@@ -19,6 +19,9 @@ from face_utils import FaceAnalysis2, analyze_faces
|
|
19 |
from style_template import styles
|
20 |
from aspect_ratio_template import aspect_ratios
|
21 |
|
|
|
|
|
|
|
22 |
# global variable
|
23 |
base_model_path = 'RunDiffusion/Juggernaut-XI-v11'
|
24 |
# base_model_path = 'SG161222/RealVisXL_V5.0_Lightning'
|
|
|
10 |
from diffusers.utils import load_image
|
11 |
from diffusers import EulerDiscreteScheduler, T2IAdapter
|
12 |
|
13 |
+
from huggingface_hub import hf_hub_download, login
|
14 |
import gradio as gr
|
15 |
|
16 |
from pipeline_t2i_adapter import PhotoMakerStableDiffusionXLAdapterPipeline
|
|
|
19 |
from style_template import styles
|
20 |
from aspect_ratio_template import aspect_ratios
|
21 |
|
22 |
+
#SECRET
|
23 |
+
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
24 |
+
login(HF_TOKEN)
|
25 |
# global variable
|
26 |
base_model_path = 'RunDiffusion/Juggernaut-XI-v11'
|
27 |
# base_model_path = 'SG161222/RealVisXL_V5.0_Lightning'
|