AbstractPhil commited on
Commit
95052a3
Β·
verified Β·
1 Parent(s): 410cce2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ def plot_heat(mat, title):
66
  return buf
67
 
68
  # ─── SDXL Text Encoding ───────────────────────────────────────
69
- def encode_sdxl_prompt(prompt, negative_prompt=""):
70
  """Generate proper CLIP-L and CLIP-G embeddings using SDXL's text encoders"""
71
 
72
  # Tokenize for both encoders
 
66
  return buf
67
 
68
  # ─── SDXL Text Encoding ───────────────────────────────────────
69
+ def encode_sdxl_prompt(pipe, prompt, negative_prompt="", device=device):
70
  """Generate proper CLIP-L and CLIP-G embeddings using SDXL's text encoders"""
71
 
72
  # Tokenize for both encoders