Spaces:
Running
on
Zero
Running
on
Zero
Richard Neuschulz
commited on
Commit
•
e491d44
1
Parent(s):
7487900
added value
Browse files
app.py
CHANGED
@@ -46,7 +46,6 @@ def generate_image(images, prompt, negative_prompt, face_strength, likeness_stre
|
|
46 |
app.prepare(ctx_id=0, det_size=(640, 640))
|
47 |
|
48 |
faceid_all_embeds = []
|
49 |
-
first_iteration = True
|
50 |
for image in images:
|
51 |
face = cv2.imread(image)
|
52 |
faces = app.get(face)
|
@@ -87,8 +86,9 @@ with gr.Blocks(css=css) as demo:
|
|
87 |
with gr.Column(visible=False) as clear_button:
|
88 |
remove_and_reupload = gr.ClearButton(value="Remove and upload new ones", components=files, size="sm")
|
89 |
prompt = gr.Textbox(label="Prompt",
|
90 |
-
|
91 |
-
|
|
|
92 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="low quality", value="low quality, worst quality")
|
93 |
style = "Photorealistic"
|
94 |
submit = gr.Button("Submit")
|
|
|
46 |
app.prepare(ctx_id=0, det_size=(640, 640))
|
47 |
|
48 |
faceid_all_embeds = []
|
|
|
49 |
for image in images:
|
50 |
face = cv2.imread(image)
|
51 |
faces = app.get(face)
|
|
|
86 |
with gr.Column(visible=False) as clear_button:
|
87 |
remove_and_reupload = gr.ClearButton(value="Remove and upload new ones", components=files, size="sm")
|
88 |
prompt = gr.Textbox(label="Prompt",
|
89 |
+
info="Try something like 'a photo of a man/woman/person'",
|
90 |
+
placeholder="A photo of a [man/woman/person]...",
|
91 |
+
value="A photo of a man, professional photoshoot, plain black shirt, on plain black background, shaved head, trimmed beard, wrinkles on forehead, intense, stoic, dramatic lighting")
|
92 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="low quality", value="low quality, worst quality")
|
93 |
style = "Photorealistic"
|
94 |
submit = gr.Button("Submit")
|