Update app.py
Browse files
app.py
CHANGED
|
@@ -67,31 +67,33 @@ with gr.Blocks() as demo:
|
|
| 67 |
info="Enter what you don't want in Image...",
|
| 68 |
lines=3
|
| 69 |
)
|
|
|
|
| 70 |
with gr.Column():
|
| 71 |
# Output component
|
| 72 |
image_output = gr.Image(label="Generated Image")
|
| 73 |
|
| 74 |
with gr.Row():
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
|
|
|
| 95 |
|
| 96 |
# Connect the interface to the generation function
|
| 97 |
generate_button.click(
|
|
|
|
| 67 |
info="Enter what you don't want in Image...",
|
| 68 |
lines=3
|
| 69 |
)
|
| 70 |
+
generate_button = gr.Button("Generate Image")
|
| 71 |
with gr.Column():
|
| 72 |
# Output component
|
| 73 |
image_output = gr.Image(label="Generated Image")
|
| 74 |
|
| 75 |
with gr.Row():
|
| 76 |
+
with gr.Column():
|
| 77 |
+
with gr.Accordion("Advanced Options", open=False):
|
| 78 |
+
model = gr.Dropdown(
|
| 79 |
+
choices=["Real6.0","Real5.1","Real5.0"],
|
| 80 |
+
value="Real6.0",
|
| 81 |
+
label="Model",
|
| 82 |
+
)
|
| 83 |
+
steps_slider = gr.Slider(
|
| 84 |
+
minimum=1,
|
| 85 |
+
maximum=100,
|
| 86 |
+
value=50,
|
| 87 |
+
step=1,
|
| 88 |
+
label="Number of Inference Steps"
|
| 89 |
+
)
|
| 90 |
+
guidance_slider = gr.Slider(
|
| 91 |
+
minimum=1,
|
| 92 |
+
maximum=20,
|
| 93 |
+
value=7.5,
|
| 94 |
+
step=0.5,
|
| 95 |
+
label="Guidance Scale"
|
| 96 |
+
)
|
| 97 |
|
| 98 |
# Connect the interface to the generation function
|
| 99 |
generate_button.click(
|