Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
269863d
1
Parent(s):
29ff982
Update app.py
Browse files
app.py
CHANGED
@@ -116,10 +116,7 @@ with gr.Blocks(css=css) as demo:
|
|
116 |
preserve = gr.Checkbox(label="Preserve Face Structure", info="Higher quality, less versatility (the face structure of your first photo will be preserved)", value=True)
|
117 |
face_strength = gr.Slider(label="Face Structure strength", info="Only applied if preserve face structure is checked", value=1.3, step=0.1, minimum=0, maximum=3)
|
118 |
likeness_strength = gr.Slider(label="Face Embed strength", value=1.0, step=0.1, minimum=0, maximum=5)
|
119 |
-
nfaa_negative_prompts = gr.Textbox(label="Appended Negative Prompts", info="Negative prompts to steer generations towards safe for all audiences outputs", value="naked, bikini, skimpy, scanty, bare skin, lingerie, swimsuit, exposed, see-through")
|
120 |
-
|
121 |
-
gr.Markdown("This demo includes extra features to prevent the usage of the model to generate content with faces of people, including third parties, that is not safe for all audiences, including naked or semi-naked people.")
|
122 |
-
|
123 |
with gr.Column():
|
124 |
gallery = gr.Gallery(label="Generated Images")
|
125 |
style.change(fn=change_style,
|
@@ -130,4 +127,7 @@ with gr.Blocks(css=css) as demo:
|
|
130 |
submit.click(fn=generate_image,
|
131 |
inputs=[files,prompt,negative_prompt,preserve, face_strength, likeness_strength, nfaa_negative_prompts],
|
132 |
outputs=gallery)
|
|
|
|
|
|
|
133 |
demo.launch()
|
|
|
116 |
preserve = gr.Checkbox(label="Preserve Face Structure", info="Higher quality, less versatility (the face structure of your first photo will be preserved)", value=True)
|
117 |
face_strength = gr.Slider(label="Face Structure strength", info="Only applied if preserve face structure is checked", value=1.3, step=0.1, minimum=0, maximum=3)
|
118 |
likeness_strength = gr.Slider(label="Face Embed strength", value=1.0, step=0.1, minimum=0, maximum=5)
|
119 |
+
nfaa_negative_prompts = gr.Textbox(label="Appended Negative Prompts", info="Negative prompts to steer generations towards safe for all audiences outputs", value="naked, bikini, skimpy, scanty, bare skin, lingerie, swimsuit, exposed, see-through")
|
|
|
|
|
|
|
120 |
with gr.Column():
|
121 |
gallery = gr.Gallery(label="Generated Images")
|
122 |
style.change(fn=change_style,
|
|
|
127 |
submit.click(fn=generate_image,
|
128 |
inputs=[files,prompt,negative_prompt,preserve, face_strength, likeness_strength, nfaa_negative_prompts],
|
129 |
outputs=gallery)
|
130 |
+
|
131 |
+
gr.Markdown("This demo includes extra features to prevent the usage of the model to generate content with faces of people, including third parties, that is not safe for all audiences, including naked or semi-naked people.")
|
132 |
+
|
133 |
demo.launch()
|