xianbao HF staff commited on
Commit
a38caca
1 Parent(s): aad3b40

Use cached output to reduce load on the server

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ with gr.Blocks() as demo:
64
  ]
65
 
66
  # 添加示例到界面
67
- gr.Examples(examples, inputs=[prompt, aspect_ratio, model, negative_prompt,image], outputs=output)
68
  generate_btn.click(fn=generate_image,
69
  inputs=[api_key, prompt, aspect_ratio, model, negative_prompt, seed],
70
  outputs=output)
 
64
  ]
65
 
66
  # 添加示例到界面
67
+ gr.Examples(examples, inputs=[prompt, aspect_ratio, model, negative_prompt,output])
68
  generate_btn.click(fn=generate_image,
69
  inputs=[api_key, prompt, aspect_ratio, model, negative_prompt, seed],
70
  outputs=output)