Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ def generate_image(prompt, negative_prompt, sampling_steps, cfg_scale, seed):
|
|
31 |
iface = gr.Interface(
|
32 |
fn=generate_image,
|
33 |
inputs=[
|
34 |
-
gr.Textbox(
|
35 |
-
gr.Textbox(
|
36 |
],
|
37 |
outputs=gr.Image(type="pil"),
|
38 |
live=True,
|
@@ -43,9 +43,9 @@ iface = gr.Interface(
|
|
43 |
tabs=[
|
44 |
"Prompt Input",
|
45 |
[
|
46 |
-
gr.Slider(
|
47 |
-
gr.Slider(
|
48 |
-
gr.Textbox("
|
49 |
]
|
50 |
],
|
51 |
interpretation="default"
|
|
|
31 |
iface = gr.Interface(
|
32 |
fn=generate_image,
|
33 |
inputs=[
|
34 |
+
gr.Textbox(default="Prompt"),
|
35 |
+
gr.Textbox(default="Negative Prompt"),
|
36 |
],
|
37 |
outputs=gr.Image(type="pil"),
|
38 |
live=True,
|
|
|
43 |
tabs=[
|
44 |
"Prompt Input",
|
45 |
[
|
46 |
+
gr.Slider(minimum=1, maximum=30, step=1, default=15, label="Sampling Steps"),
|
47 |
+
gr.Slider(minimum=1, maximum=20, step=1, default=10, label="CFG Scale"),
|
48 |
+
gr.Textbox(default="-1", label="Seed"),
|
49 |
]
|
50 |
],
|
51 |
interpretation="default"
|