weijiang2024 commited on
Commit
060fd1d
·
verified ·
1 Parent(s): 35d1c10

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,9 +23,9 @@ def generate_image(prompt, negative_prompt, num_inference_steps, guidance_scale)
23
  interface = gr.Interface(
24
  fn=generate_image,
25
  inputs=[
26
- gr.Textbox(label="Prompt"),
27
- gr.Textbox(label="Negative Prompt", placeholder="Optional"),
28
- gr.Slider(step=1, minimum=1, maximum=100, value=28, label="Number of Inference Steps"),
29
  gr.Slider(minimum=1.0, maximum=20.0, step=0.1, value=7.0, label="Guidance Scale")
30
  ],
31
  outputs="image",
 
23
  interface = gr.Interface(
24
  fn=generate_image,
25
  inputs=[
26
+ gr.Textbox(label="正向提示词"),
27
+ gr.Textbox(label="负向提示词", placeholder="Optional"),
28
+ gr.Slider(step=1, minimum=1, maximum=100, value=28, label="推理步数"),
29
  gr.Slider(minimum=1.0, maximum=20.0, step=0.1, value=7.0, label="Guidance Scale")
30
  ],
31
  outputs="image",