Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -99,18 +99,6 @@ def generate(
|
|
99 |
clip_skip: int = 1,
|
100 |
progress=gr.Progress(track_tqdm=True),
|
101 |
):
|
102 |
-
"""
|
103 |
-
if torch.cuda.is_available():
|
104 |
-
pipe = StableDiffusionXLPipeline.from_pretrained(
|
105 |
-
MODEL,
|
106 |
-
torch_dtype=torch.float16,
|
107 |
-
custom_pipeline="lpw_stable_diffusion_xl",
|
108 |
-
safety_checker=None,
|
109 |
-
use_safetensors=True,
|
110 |
-
add_watermarker=False,
|
111 |
-
use_auth_token=HF_TOKEN
|
112 |
-
)
|
113 |
-
"""
|
114 |
|
115 |
generator = seed_everything(seed)
|
116 |
pipe.scheduler = get_scheduler(pipe.scheduler.config, sampler)
|
@@ -148,7 +136,9 @@ else:
|
|
148 |
pipe = None
|
149 |
|
150 |
with gr.Blocks(
|
151 |
-
theme=gr.themes.Base(
|
|
|
|
|
152 |
) as demo:
|
153 |
gr.HTML(
|
154 |
"""
|
|
|
99 |
clip_skip: int = 1,
|
100 |
progress=gr.Progress(track_tqdm=True),
|
101 |
):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
generator = seed_everything(seed)
|
104 |
pipe.scheduler = get_scheduler(pipe.scheduler.config, sampler)
|
|
|
136 |
pipe = None
|
137 |
|
138 |
with gr.Blocks(
|
139 |
+
theme=gr.themes.Base(
|
140 |
+
font = [gr.themes.GoogleFont("Outfit"), "Arial", "sans-serif"],
|
141 |
+
)
|
142 |
) as demo:
|
143 |
gr.HTML(
|
144 |
"""
|