Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ with gr.Blocks(css="footer {visibility: hidden !important;}") as demo:
|
|
| 26 |
with gr.Column():
|
| 27 |
prompt = gr.Textbox(label="Your Guidance", value="a beautiful flower")
|
| 28 |
negative = gr.Textbox(label="Avoid (Optional)", value="low-resolution")
|
| 29 |
-
steps = gr.Slider(1, 30, value=
|
| 30 |
btn = gr.Button("Generate Image")
|
| 31 |
|
| 32 |
output = gr.Image(label="Result", height=400),
|
|
@@ -36,10 +36,10 @@ with gr.Blocks(css="footer {visibility: hidden !important;}") as demo:
|
|
| 36 |
|
| 37 |
gr.Examples(
|
| 38 |
examples=[
|
| 39 |
-
["cityscape at night, red lights", "people"
|
| 40 |
-
["watercolor painting of a flower", "photorealistic"
|
| 41 |
],
|
| 42 |
-
inputs=[prompt, negative
|
| 43 |
)
|
| 44 |
|
| 45 |
demo.launch()
|
|
|
|
| 26 |
with gr.Column():
|
| 27 |
prompt = gr.Textbox(label="Your Guidance", value="a beautiful flower")
|
| 28 |
negative = gr.Textbox(label="Avoid (Optional)", value="low-resolution")
|
| 29 |
+
steps = gr.Slider(1, 30, value=11, label="Quality Steps", visible=False)
|
| 30 |
btn = gr.Button("Generate Image")
|
| 31 |
|
| 32 |
output = gr.Image(label="Result", height=400),
|
|
|
|
| 36 |
|
| 37 |
gr.Examples(
|
| 38 |
examples=[
|
| 39 |
+
["cityscape at night, red lights", "people"],
|
| 40 |
+
["watercolor painting of a flower", "photorealistic"]
|
| 41 |
],
|
| 42 |
+
inputs=[prompt, negative]
|
| 43 |
)
|
| 44 |
|
| 45 |
demo.launch()
|