Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ with gr.Blocks() as interface:
|
|
27 |
with gr.Row():
|
28 |
with gr.Column():
|
29 |
prompt = gr.Textbox(label="Prompt", info="What do you want?", value="score_6_up, A high-resolution photograph of a young, nude woman with fair skin and long, wavy red hair cascading down her back. She is standing in a lush, tropical jungle setting, surrounded by dense greenery and various types of plants. Her physique is slender with small, perky breasts and a flat stomach. She has a relaxed, confident expression on her face, looking directly at the camera. The woman has a pair of translucent, fairy-like wings attached to her back, with a light, almost golden hue. The wings have a delicate, almost ethereal quality, contrasting with her natural skin tone. She is standing on a moss-covered rock in a small, shallow pond, with her left hand resting on the rock for support and her right arm hanging loosely by her side. The background is a dense, vibrant jungle, with large leaves and ferns in various shades of green, creating a lush, tropical atmosphere. The lighting is soft and natural, with sunlight filtering through the foliage, casting a gentle glow on her skin and the surrounding environment. The overall mood of the image is serene and magical, blending elements of fantasy and nature.", lines=4, interactive=True)
|
30 |
-
negative_prompt = gr.Textbox(label="Negative Prompt", info="What do you want to exclude from the image?", value="score_1, score_2, score_3", lines=4, interactive=True)
|
31 |
with gr.Column():
|
32 |
generate_button = gr.Button("Generate")
|
33 |
output = gr.Image()
|
@@ -41,7 +41,7 @@ with gr.Blocks() as interface:
|
|
41 |
sampling_steps = gr.Slider(label="Sampling Steps", info="The number of denoising steps.", value=40, minimum=4, maximum=50, step=1, interactive=True)
|
42 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0,)
|
43 |
with gr.Column():
|
44 |
-
guidance_scale = gr.Slider(label="Guidance Scale", info="Guidance scale.", value=
|
45 |
|
46 |
generate_button.click(fn=generate, inputs=[prompt, negative_prompt, width, height, sampling_steps, guidance_scale, seed], outputs=[output])
|
47 |
|
|
|
27 |
with gr.Row():
|
28 |
with gr.Column():
|
29 |
prompt = gr.Textbox(label="Prompt", info="What do you want?", value="score_6_up, A high-resolution photograph of a young, nude woman with fair skin and long, wavy red hair cascading down her back. She is standing in a lush, tropical jungle setting, surrounded by dense greenery and various types of plants. Her physique is slender with small, perky breasts and a flat stomach. She has a relaxed, confident expression on her face, looking directly at the camera. The woman has a pair of translucent, fairy-like wings attached to her back, with a light, almost golden hue. The wings have a delicate, almost ethereal quality, contrasting with her natural skin tone. She is standing on a moss-covered rock in a small, shallow pond, with her left hand resting on the rock for support and her right arm hanging loosely by her side. The background is a dense, vibrant jungle, with large leaves and ferns in various shades of green, creating a lush, tropical atmosphere. The lighting is soft and natural, with sunlight filtering through the foliage, casting a gentle glow on her skin and the surrounding environment. The overall mood of the image is serene and magical, blending elements of fantasy and nature.", lines=4, interactive=True)
|
30 |
+
negative_prompt = gr.Textbox(label="Negative Prompt", info="What do you want to exclude from the image?", value="score_1, score_2, score_3, multiple views, illustration", lines=4, interactive=True)
|
31 |
with gr.Column():
|
32 |
generate_button = gr.Button("Generate")
|
33 |
output = gr.Image()
|
|
|
41 |
sampling_steps = gr.Slider(label="Sampling Steps", info="The number of denoising steps.", value=40, minimum=4, maximum=50, step=1, interactive=True)
|
42 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0,)
|
43 |
with gr.Column():
|
44 |
+
guidance_scale = gr.Slider(label="Guidance Scale", info="Guidance scale.", value=3.5, minimum=1, maximum=10, step=0.1, interactive=True)
|
45 |
|
46 |
generate_button.click(fn=generate, inputs=[prompt, negative_prompt, width, height, sampling_steps, guidance_scale, seed], outputs=[output])
|
47 |
|