Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,10 @@ def generate(prompt, negative_prompt, width=1024, height=1024, num_inference_ste
|
|
26 |
pipe.load_lora_weights(lora_id.strip())
|
27 |
pipe.to("cuda")
|
28 |
# apply_first_block_cache(pipe.transformer, FirstBlockCacheConfig(threshold=0.2))
|
29 |
-
apply_cache_on_pipe(
|
|
|
|
|
|
|
30 |
try:
|
31 |
output = pipe(
|
32 |
prompt=prompt,
|
|
|
26 |
pipe.load_lora_weights(lora_id.strip())
|
27 |
pipe.to("cuda")
|
28 |
# apply_first_block_cache(pipe.transformer, FirstBlockCacheConfig(threshold=0.2))
|
29 |
+
apply_cache_on_pipe(
|
30 |
+
pipe,
|
31 |
+
residual_diff_threshold=0.2,
|
32 |
+
)
|
33 |
try:
|
34 |
output = pipe(
|
35 |
prompt=prompt,
|