Spaces:
Configuration error
Configuration error
打印STYLE_NAMES的内容
Browse files
app.py
CHANGED
|
@@ -256,8 +256,8 @@ def generate_image(
|
|
| 256 |
|
| 257 |
generator = torch.Generator(device=device).manual_seed(seed)
|
| 258 |
|
| 259 |
-
|
| 260 |
-
|
| 261 |
|
| 262 |
pipe.set_ip_adapter_scale(adapter_strength_ratio)
|
| 263 |
images = pipe(
|
|
@@ -433,11 +433,11 @@ with gr.Blocks(css=css) as demo:
|
|
| 433 |
outputs=output_image,
|
| 434 |
)
|
| 435 |
|
| 436 |
-
style_event.select(
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
)
|
| 441 |
|
| 442 |
# gr.Examples(
|
| 443 |
# examples=get_example(),
|
|
|
|
| 256 |
|
| 257 |
generator = torch.Generator(device=device).manual_seed(seed)
|
| 258 |
|
| 259 |
+
print("Start inference...")
|
| 260 |
+
print(f"[Debug] 风格列表: {STYLE_NAMES}, \n[Debug] 风格类型: {type(STYLE_NAMES)}")
|
| 261 |
|
| 262 |
pipe.set_ip_adapter_scale(adapter_strength_ratio)
|
| 263 |
images = pipe(
|
|
|
|
| 433 |
outputs=output_image,
|
| 434 |
)
|
| 435 |
|
| 436 |
+
# style_event.select(
|
| 437 |
+
# fn=get_style_lists,
|
| 438 |
+
# outputs=style_lists,
|
| 439 |
+
# queue=False,
|
| 440 |
+
# )
|
| 441 |
|
| 442 |
# gr.Examples(
|
| 443 |
# examples=get_example(),
|