Spaces:
Running on Zero
Running on Zero
Update app.py
#4
by Luisito44 - opened
app.py
CHANGED
|
@@ -61,18 +61,6 @@ class OrangeRedTheme(Soft):
|
|
| 61 |
orange_red_theme = OrangeRedTheme()
|
| 62 |
MAX_SEED = np.iinfo(np.int32).max
|
| 63 |
|
| 64 |
-
# Face Swap Prompt Template
|
| 65 |
-
FACE_SWAP_PROMPT = """head_swap: start with Picture 1 as the base image, keeping its lighting, environment, and background. Remove the head from Picture 1 completely and replace it with the head from Picture 2.
|
| 66 |
-
FROM PICTURE 1 (strictly preserve):
|
| 67 |
-
- Scene: lighting conditions, shadows, highlights, color temperature, environment, background
|
| 68 |
-
- Head positioning: exact rotation angle, tilt, direction the head is facing
|
| 69 |
-
- Expression: facial expression, micro-expressions, eye gaze direction, mouth position, emotion
|
| 70 |
-
FROM PICTURE 2 (strictly preserve identity):
|
| 71 |
-
- Facial structure: face shape, bone structure, jawline, chin
|
| 72 |
-
- All facial features: eye color, eye shape, nose structure, lip shape and fullness, eyebrows
|
| 73 |
-
- Hair: color, style, texture, hairline
|
| 74 |
-
- Skin: texture, tone, complexion
|
| 75 |
-
The replaced head must seamlessly match Picture 1's lighting and expression while maintaining the complete identity from Picture 2. High quality, photorealistic, sharp details, 4k."""
|
| 76 |
|
| 77 |
LORA_STYLES = [
|
| 78 |
{
|
|
@@ -100,12 +88,7 @@ LORA_STYLES = [
|
|
| 100 |
"default_prompt": None
|
| 101 |
},
|
| 102 |
{
|
| 103 |
-
"
|
| 104 |
-
"title": "Best-Face-Swap",
|
| 105 |
-
"adapter_name": "face-swap",
|
| 106 |
-
"repo": "Alissonerdx/BFS-Best-Face-Swap",
|
| 107 |
-
"weights": "bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors",
|
| 108 |
-
"default_prompt": FACE_SWAP_PROMPT
|
| 109 |
},
|
| 110 |
{
|
| 111 |
"image": "https://huggingface.co/spaces/prithivMLmods/FLUX.2-Klein-LoRA-Studio/resolve/main/examples/mc.png",
|
|
|
|
| 61 |
orange_red_theme = OrangeRedTheme()
|
| 62 |
MAX_SEED = np.iinfo(np.int32).max
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
LORA_STYLES = [
|
| 66 |
{
|
|
|
|
| 88 |
"default_prompt": None
|
| 89 |
},
|
| 90 |
{
|
| 91 |
+
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
},
|
| 93 |
{
|
| 94 |
"image": "https://huggingface.co/spaces/prithivMLmods/FLUX.2-Klein-LoRA-Studio/resolve/main/examples/mc.png",
|