Spaces:
Runtime error
Runtime error
Commit
·
8ff21a8
1
Parent(s):
d326372
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,8 @@ def infer(prompt, negative_prompt, image):
|
|
| 138 |
|
| 139 |
with gr.Blocks(theme='gradio/soft') as demo:
|
| 140 |
gr.Markdown("## Stable Diffusion with Hand Control")
|
| 141 |
-
|
|
|
|
| 142 |
with gr.Row():
|
| 143 |
with gr.Column():
|
| 144 |
prompt_input = gr.Textbox(label="Prompt")
|
|
@@ -159,6 +160,26 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
| 159 |
"longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
|
| 160 |
"example.png"
|
| 161 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
],
|
| 163 |
inputs=[prompt_input, negative_prompt, input_image],
|
| 164 |
outputs=[output_image],
|
|
|
|
| 138 |
|
| 139 |
with gr.Blocks(theme='gradio/soft') as demo:
|
| 140 |
gr.Markdown("## Stable Diffusion with Hand Control")
|
| 141 |
+
gr.Markdown("This model is a ControlNet model using MediaPipe hand landmarks for control.")
|
| 142 |
+
|
| 143 |
with gr.Row():
|
| 144 |
with gr.Column():
|
| 145 |
prompt_input = gr.Textbox(label="Prompt")
|
|
|
|
| 160 |
"longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
|
| 161 |
"example.png"
|
| 162 |
],
|
| 163 |
+
[
|
| 164 |
+
"a man with his hands up in the air making a rock sign",
|
| 165 |
+
"longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
|
| 166 |
+
"example1.png"
|
| 167 |
+
],
|
| 168 |
+
[
|
| 169 |
+
"a man is making a thumbs up gesture",
|
| 170 |
+
"longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
|
| 171 |
+
"example2.png"
|
| 172 |
+
],
|
| 173 |
+
[
|
| 174 |
+
"a woman is holding up her hand in front of a window",
|
| 175 |
+
"longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
|
| 176 |
+
"example3.png"
|
| 177 |
+
],
|
| 178 |
+
[
|
| 179 |
+
"a man with her finger on her lips",
|
| 180 |
+
"longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
|
| 181 |
+
"example4.png"
|
| 182 |
+
],
|
| 183 |
],
|
| 184 |
inputs=[prompt_input, negative_prompt, input_image],
|
| 185 |
outputs=[output_image],
|