wangliujing70 commited on
Commit
c910d60
·
verified ·
1 Parent(s): 6135b60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ expression_prompts = {
38
 
39
  # 生成函数
40
  @torch.inference_mode()
41
- def generate_expression(_, expression):
42
  prompt = expression_prompts[expression]
43
  negative_prompt = "blurry, low quality, distorted, bad anatomy"
44
 
@@ -66,7 +66,7 @@ with gr.Blocks() as demo:
66
 
67
  submit_btn.click(
68
  fn=generate_expression,
69
- inputs=[None, expression_input],
70
  outputs=[image_output, log_output]
71
  )
72
 
 
38
 
39
  # 生成函数
40
  @torch.inference_mode()
41
+ def generate_expression(expression):
42
  prompt = expression_prompts[expression]
43
  negative_prompt = "blurry, low quality, distorted, bad anatomy"
44
 
 
66
 
67
  submit_btn.click(
68
  fn=generate_expression,
69
+ inputs=[expression_input],
70
  outputs=[image_output, log_output]
71
  )
72