Spaces:
Sleeping
Sleeping
gbarbadillo
commited on
Commit
·
66a85d4
1
Parent(s):
0d9d7db
updated sample prompts
Browse files
app.py
CHANGED
@@ -92,12 +92,12 @@ with gr.Blocks() as demo:
|
|
92 |
# IP-Adapter-FaceID-plus
|
93 |
Generate images conditioned on a image prompt and a text prompt. Learn more here: https://huggingface.co/h94/IP-Adapter-FaceID
|
94 |
|
95 |
-
This demo is intended to use on GPU. It will work also on CPU but generating one image could take 900 seconds compared to a few
|
96 |
""")
|
97 |
with gr.Row():
|
98 |
with gr.Column():
|
99 |
demo_inputs = []
|
100 |
-
demo_inputs.append(gr.Textbox(label='text prompt', value='
|
101 |
demo_inputs.append(gr.Image(type='filepath', label='image prompt'))
|
102 |
with gr.Accordion(label='Advanced options', open=False):
|
103 |
demo_inputs.append(gr.Textbox(label='negative text prompt', value="monochrome, lowres, bad anatomy, worst quality, low quality, blurry"))
|
@@ -110,9 +110,10 @@ with gr.Blocks() as demo:
|
|
110 |
demo_outputs.append(gr.Image(label='detected face', height=224, width=224))
|
111 |
btn.click(generate_images, inputs=demo_inputs, outputs=demo_outputs)
|
112 |
sample_prompts = [
|
113 |
-
'
|
114 |
-
'
|
115 |
-
'
|
|
|
116 |
]
|
117 |
gr.Examples(sample_prompts, inputs=demo_inputs[0], label='Sample prompts')
|
118 |
|
|
|
92 |
# IP-Adapter-FaceID-plus
|
93 |
Generate images conditioned on a image prompt and a text prompt. Learn more here: https://huggingface.co/h94/IP-Adapter-FaceID
|
94 |
|
95 |
+
This demo is intended to use on GPU. It will work also on CPU but generating one image could take 900 seconds compared to a few seconds on GPU.
|
96 |
""")
|
97 |
with gr.Row():
|
98 |
with gr.Column():
|
99 |
demo_inputs = []
|
100 |
+
demo_inputs.append(gr.Textbox(label='text prompt', value='Linkedin profile picture'))
|
101 |
demo_inputs.append(gr.Image(type='filepath', label='image prompt'))
|
102 |
with gr.Accordion(label='Advanced options', open=False):
|
103 |
demo_inputs.append(gr.Textbox(label='negative text prompt', value="monochrome, lowres, bad anatomy, worst quality, low quality, blurry"))
|
|
|
110 |
demo_outputs.append(gr.Image(label='detected face', height=224, width=224))
|
111 |
btn.click(generate_images, inputs=demo_inputs, outputs=demo_outputs)
|
112 |
sample_prompts = [
|
113 |
+
'Linkedin profile picture',
|
114 |
+
'A singer on stage',
|
115 |
+
'A politician talking to the people',
|
116 |
+
'An astronaut in space',
|
117 |
]
|
118 |
gr.Examples(sample_prompts, inputs=demo_inputs[0], label='Sample prompts')
|
119 |
|