Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -269,7 +269,7 @@ def infer(
|
|
269 |
negative_prompt = ""
|
270 |
prompt = get_embed_new(prompt, pipe, compel, only_convert_string=True)
|
271 |
negative_prompt = get_embed_new(negative_prompt, pipe, compel, only_convert_string=True)
|
272 |
-
conditioning, pooled = compel([prompt,
|
273 |
|
274 |
# 在调用 pipe 时,使用新的参数名称(确保参数名称正确)
|
275 |
image = pipe(
|
|
|
269 |
negative_prompt = ""
|
270 |
prompt = get_embed_new(prompt, pipe, compel, only_convert_string=True)
|
271 |
negative_prompt = get_embed_new(negative_prompt, pipe, compel, only_convert_string=True)
|
272 |
+
conditioning, pooled = compel([prompt, negative_prompt]) # 必须同时处理来保证长度相等
|
273 |
|
274 |
# 在调用 pipe 时,使用新的参数名称(确保参数名称正确)
|
275 |
image = pipe(
|