Spaces:
Running
Running
Commit
•
9115828
1
Parent(s):
aad3b40
Use cached output to reduce load on the server (#2)
Browse files- Use cached output to reduce load on the server (a38caca111654fbe13f906dca13b8caa16343e54)
Co-authored-by: Tiezhen WANG <[email protected]>
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,
|
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)
|