Spaces:
Runtime error
Runtime error
weijiang2024
commited on
Upload folder using huggingface_hub
Browse files
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="
|
27 |
-
gr.Textbox(label="
|
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",
|
|
|
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",
|