Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,8 +70,7 @@ with gr.Blocks() as app:
|
|
70 |
with gr.Row():
|
71 |
with gr.Column(scale=1):
|
72 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, elem_id="prompt-text-input")
|
73 |
-
|
74 |
-
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
|
75 |
steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
|
76 |
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|
77 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
@@ -79,8 +78,8 @@ with gr.Blocks() as app:
|
|
79 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
80 |
|
81 |
with gr.Row():
|
82 |
-
clear_button = gr.Button("Clear", elem_id="clear-button", variant="secondary",
|
83 |
-
generate_button = gr.Button("Generate", elem_id="generate-button", variant="primary",
|
84 |
|
85 |
with gr.Column(scale=1):
|
86 |
image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
|
|
|
70 |
with gr.Row():
|
71 |
with gr.Column(scale=1):
|
72 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, elem_id="prompt-text-input")
|
73 |
+
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
|
|
|
74 |
steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
|
75 |
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|
76 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
|
|
78 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
79 |
|
80 |
with gr.Row():
|
81 |
+
clear_button = gr.Button("Clear", elem_id="clear-button", variant="secondary", style={"border-color": "black", "border-width": "2px"})
|
82 |
+
generate_button = gr.Button("Generate", elem_id="generate-button", variant="primary", style={"border-color": "black", "border-width": "2px", "background-color": "green", "color": "white"})
|
83 |
|
84 |
with gr.Column(scale=1):
|
85 |
image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
|