updated
Browse files
app.py
CHANGED
|
@@ -49,7 +49,9 @@ def generate_headshot(image):
|
|
| 49 |
if isinstance(image, np.ndarray):
|
| 50 |
image = Image.fromarray(image)
|
| 51 |
|
| 52 |
-
prompt = "
|
|
|
|
|
|
|
| 53 |
|
| 54 |
# Generate image (Lower strength for subtle changes)
|
| 55 |
generated_image = pipe(prompt=prompt, image=image, strength=0.5).images[0]
|
|
|
|
| 49 |
if isinstance(image, np.ndarray):
|
| 50 |
image = Image.fromarray(image)
|
| 51 |
|
| 52 |
+
prompt = "Ultra-realistic professional headshot, studio lighting, 4K resolution, "
|
| 53 |
+
"sharp details, DSLR quality, corporate portrait, neutral background, "
|
| 54 |
+
"perfect skin texture, cinematic lighting"
|
| 55 |
|
| 56 |
# Generate image (Lower strength for subtle changes)
|
| 57 |
generated_image = pipe(prompt=prompt, image=image, strength=0.5).images[0]
|