Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,8 @@ def swap_clothing(person_image, clothing_image):
|
|
65 |
# Create the prompt
|
66 |
prompt = '''
|
67 |
Edit the person's clothing by swapping it with the clothing in the clothing image.
|
68 |
-
Retain the same facial features, pose and background from the person image.
|
69 |
-
The output image should be an image of the person wearing the clothing from the clothing image.
|
70 |
The image pose and background should be the same as the person image but with the new clothing:
|
71 |
'''
|
72 |
|
@@ -74,7 +74,7 @@ def swap_clothing(person_image, clothing_image):
|
|
74 |
types.Content(
|
75 |
role="user",
|
76 |
parts=[
|
77 |
-
types.Part.from_text(text="This is the person image. Do not change the face or features of the person. Pay attention and retain the background, pose, facial features."),
|
78 |
types.Part.from_uri(
|
79 |
file_uri=uploaded_files[0].uri,
|
80 |
mime_type=uploaded_files[0].mime_type,
|
|
|
65 |
# Create the prompt
|
66 |
prompt = '''
|
67 |
Edit the person's clothing by swapping it with the clothing in the clothing image.
|
68 |
+
Retain the same face, facial features, pose and background from the person image.
|
69 |
+
The output image should be an image of the person wearing the clothing from the clothing image with the style of clothing image.
|
70 |
The image pose and background should be the same as the person image but with the new clothing:
|
71 |
'''
|
72 |
|
|
|
74 |
types.Content(
|
75 |
role="user",
|
76 |
parts=[
|
77 |
+
types.Part.from_text(text="This is the person image. Do not change the face or features of the person. Pay attention and retain the face, environment, background, pose, facial features."),
|
78 |
types.Part.from_uri(
|
79 |
file_uri=uploaded_files[0].uri,
|
80 |
mime_type=uploaded_files[0].mime_type,
|