ovi054 commited on
Commit
c15a99e
·
verified ·
1 Parent(s): 85f6fcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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(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,