LPDoctor commited on
Commit
49037d7
·
verified ·
1 Parent(s): 89ee16b

打印STYLE_NAMES的内容

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -256,8 +256,8 @@ def generate_image(
256
 
257
  generator = torch.Generator(device=device).manual_seed(seed)
258
 
259
- # print("Start inference...")
260
- # print(f"[Debug] Prompt: {prompt}, \n[Debug] Neg Prompt: {negative_prompt}")
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
- fn=get_style_lists,
438
- outputs=style_lists,
439
- queue=False,
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(),