Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -343,12 +343,14 @@ description = r"""
|
|
| 343 |
|
| 344 |
Steps:<br>
|
| 345 |
1. Upload an image with a face. If multiple faces are detected, we use the largest one. For images with already tightly cropped faces, detection may fail, try images with a larger margin.
|
| 346 |
-
2. Enter a text prompt, as done in normal text-to-image models. It is highly recomended to describe the person in the text prompt - as a suffix
|
| 347 |
-
A Caucasian female with white skin, brown eyes, gray hair, and long hair
|
| 348 |
-
A Caucasian male with short brown hair and a beard
|
| 349 |
-
A male with brown skin and black short hair
|
| 350 |
-
A female with brown hair and glasses
|
| 351 |
-
3.
|
|
|
|
|
|
|
| 352 |
"""
|
| 353 |
# 3. (Optional) You can upload your own style images to be used with IP-adapter
|
| 354 |
|
|
@@ -375,8 +377,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 375 |
# Textbox for entering a prompt
|
| 376 |
prompt = gr.Textbox(
|
| 377 |
label="Prompt",
|
| 378 |
-
placeholder="Enter your prompt here",
|
| 379 |
-
info="Describe what you want to generate or modify in the image."
|
| 380 |
)
|
| 381 |
|
| 382 |
lora_name = gr.Dropdown(choices=lora_names, label="LoRA", value="", info="Select a LoRA name from the list, not selecting any will disable LoRA.")
|
|
|
|
| 343 |
|
| 344 |
Steps:<br>
|
| 345 |
1. Upload an image with a face. If multiple faces are detected, we use the largest one. For images with already tightly cropped faces, detection may fail, try images with a larger margin.
|
| 346 |
+
2. Enter a text prompt, as done in normal text-to-image models. It is highly recomended to describe the person in the text prompt - as a suffix, e.g., <br>
|
| 347 |
+
A Caucasian female with white skin, brown eyes, gray hair, and long hair.<br>
|
| 348 |
+
A Caucasian male with short brown hair and a beard.<br>
|
| 349 |
+
A male with brown skin and black short hair.<br>
|
| 350 |
+
A female with brown hair and glasses.<br>
|
| 351 |
+
3. (Optional) Choose one the given LoRA's to explore more styles and capabilities.
|
| 352 |
+
4. Click <b>Submit</b> to generate new images of the subject.
|
| 353 |
+
5. Remember to try different configurations (try to change the scales given in the advanced section)
|
| 354 |
"""
|
| 355 |
# 3. (Optional) You can upload your own style images to be used with IP-adapter
|
| 356 |
|
|
|
|
| 377 |
# Textbox for entering a prompt
|
| 378 |
prompt = gr.Textbox(
|
| 379 |
label="Prompt",
|
| 380 |
+
placeholder="Enter your prompt here, recomended to start with short description of the ID",
|
| 381 |
+
info="Describe what you want to generate or modify in the image. It is recomended to start with description of the ID (see examples above)."
|
| 382 |
)
|
| 383 |
|
| 384 |
lora_name = gr.Dropdown(choices=lora_names, label="LoRA", value="", info="Select a LoRA name from the list, not selecting any will disable LoRA.")
|