Spaces:
Running
on
Zero
Running
on
Zero
Commit
Β·
1ee003a
1
Parent(s):
4bec240
yes
Browse files
app.py
CHANGED
@@ -131,8 +131,9 @@ def encode_sdxl_prompt(prompt, negative_prompt=""):
|
|
131 |
|
132 |
# βββ Inference ββββββββββββββββββββββββββββββββββββββββββββ
|
133 |
|
134 |
-
|
135 |
@spaces.GPU
|
|
|
136 |
def infer(prompt, negative_prompt, adapter_l_file, adapter_g_file, strength, noise, gate_prob,
|
137 |
use_anchor, steps, cfg_scale, scheduler_name, width, height, seed):
|
138 |
|
|
|
131 |
|
132 |
# βββ Inference ββββββββββββββββββββββββββββββββββββββββββββ
|
133 |
|
134 |
+
|
135 |
@spaces.GPU
|
136 |
+
@torch.no_grad()
|
137 |
def infer(prompt, negative_prompt, adapter_l_file, adapter_g_file, strength, noise, gate_prob,
|
138 |
use_anchor, steps, cfg_scale, scheduler_name, width, height, seed):
|
139 |
|