Update app.py
Browse files
app.py
CHANGED
|
@@ -135,7 +135,7 @@ pipe = load_pipeline()
|
|
| 135 |
# ---------------------------
|
| 136 |
|
| 137 |
@spaces.GPU
|
| 138 |
-
def generate(face_image, prompt, negative_prompt="", steps=
|
| 139 |
"""
|
| 140 |
face_image : image contenant le visage de référence
|
| 141 |
prompt : description du corps, tenue, décor, style
|
|
@@ -195,16 +195,16 @@ with gr.Blocks() as demo:
|
|
| 195 |
label="Prompt",
|
| 196 |
lines=3,
|
| 197 |
value=(
|
| 198 |
-
"photorealistic full body firefighter uniform
|
| 199 |
-
"
|
| 200 |
),
|
| 201 |
)
|
| 202 |
|
| 203 |
neg_prompt = gr.Textbox(
|
| 204 |
label="Negative",
|
| 205 |
value=(
|
| 206 |
-
"
|
| 207 |
-
"
|
| 208 |
),
|
| 209 |
)
|
| 210 |
|
|
|
|
| 135 |
# ---------------------------
|
| 136 |
|
| 137 |
@spaces.GPU
|
| 138 |
+
def generate(face_image, prompt, negative_prompt="", steps=30, guidance_scale=5, height=1024, width=768):
|
| 139 |
"""
|
| 140 |
face_image : image contenant le visage de référence
|
| 141 |
prompt : description du corps, tenue, décor, style
|
|
|
|
| 195 |
label="Prompt",
|
| 196 |
lines=3,
|
| 197 |
value=(
|
| 198 |
+
"photorealistic full body portrait, firefighter uniform with detailed fabric, "
|
| 199 |
+
"realistic studio lighting, 35mm DSLR, sharp focus on face, clean background, high resolution"
|
| 200 |
),
|
| 201 |
)
|
| 202 |
|
| 203 |
neg_prompt = gr.Textbox(
|
| 204 |
label="Negative",
|
| 205 |
value=(
|
| 206 |
+
"cartoon, anime, painting, illustration, lowres, blurry, deformed, bad anatomy, "
|
| 207 |
+
"extra limbs, waxy skin, oversharpen, text, watermark"
|
| 208 |
),
|
| 209 |
)
|
| 210 |
|