shichen commited on
Commit
89eee7b
1 Parent(s): 3a74832

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,12 +37,12 @@ def generate_image(api_key, prompt, aspect_ratio, model, negative_prompt, seed):
37
  with gr.Blocks() as demo:
38
  with gr.Row():
39
  with gr.Column(scale=1):
40
- api_key_text = gr.HTML("<a href='https://platform.stability.ai/account/keys' target='_blank'>点我申请API-key,免费运行6次</a>")
41
  api_key = gr.Textbox(label="API Key")
42
  prompt = gr.Textbox(label="Prompt", placeholder="What you wish to see in the output image.")
43
  aspect_ratio = gr.Dropdown(label="Aspect Ratio", choices=["16:9", "1:1", "21:9", "2:3", "3:2", "4:5", "5:4", "9:16", "9:21"], value="1:1")
44
  model = gr.Dropdown(label="Model", choices=["sd3", "sd3-turbo"], value="sd3")
45
- seed = gr.Number(label="Seed (输入0则随机种子)", value=0, minimum=0, maximum=4294967294, step=1)
46
  seed.description = "输入0则随机种子"
47
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Describe what you do not wish to see.")
48
  generate_btn = gr.Button("Generate Image")
 
37
  with gr.Blocks() as demo:
38
  with gr.Row():
39
  with gr.Column(scale=1):
40
+ api_key_text = gr.HTML("<a href='https://platform.stability.ai/account/keys' target='_blank'>https://platform.stability.ai/account/keys</a>")
41
  api_key = gr.Textbox(label="API Key")
42
  prompt = gr.Textbox(label="Prompt", placeholder="What you wish to see in the output image.")
43
  aspect_ratio = gr.Dropdown(label="Aspect Ratio", choices=["16:9", "1:1", "21:9", "2:3", "3:2", "4:5", "5:4", "9:16", "9:21"], value="1:1")
44
  model = gr.Dropdown(label="Model", choices=["sd3", "sd3-turbo"], value="sd3")
45
+ seed = gr.Number(label="Seed (Enter 0 for random seed)", value=0, minimum=0, maximum=4294967294, step=1)
46
  seed.description = "输入0则随机种子"
47
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Describe what you do not wish to see.")
48
  generate_btn = gr.Button("Generate Image")