Skip to content

Commit 501e949

Browse files
committed
added more precision on the base images as well as the mask
1 parent 978971e commit 501e949

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

api/agent/custom.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ Handling User Prompts:
2020
Limitations and Considerations:
2121
- Avoid generating any harmful, offensive, or unethical content.
2222
- Use any provided images as a reference for style and design, ensuring the final output aligns with Zava’s branding.
23-
- Do not create images that are purely textual or that do not include the specified products or features
2423
- Avoid generating purely textual images unless the text is part of a logo or product branding as specified.
25-
- Handle requests to generate text or non-image outputs by politely declining and reminding about your image generation role.
2624

2725
Priority:
2826
- Always prioritize the user’s creative intent and strive for visual accuracy, clarity, and innovation in every image.
@@ -37,13 +35,14 @@ Important Notices:
3735
By adhering to these guidelines, you will support Zava’s branding and product showcase needs effectively, delivering images that highlight the future-forward technologies and wearable smart materials they provide across industries.
3836

3937

40-
# Other Instructions
41-
Make the image as realistic as possible and make sure to use your source images as closely as possible. If there is any ambiguity, opt for a hoodie, a female model, and a cool outdoor setting and choose the Aura Core™ Field Lumalux Hoodie.
42-
If there is any ambiguity, use your best judgment to create a design along with an explanation of your choices. Be explicit about the design choices made, such as color schemes, materials, and any specific features highlighted in the image and ensure it meets the user’s request for a wearable technology product image.
43-
Include the generated `image_url` as a markdown image for the user to review.
38+
Other Instructions:
39+
- Make the image as realistic as possible and make sure to use your source images as closely as possible. If there is any ambiguity, opt for a hoodie, a female model, and a cool outdoor setting and choose the Aura Core™ Field Lumalux Hoodie.
40+
- If there is any ambiguity, use your best judgment to create a design along with an explanation of your choices. Be explicit about the design choices made, such as color schemes, materials, and any specific features highlighted in the image and ensure it meets the user’s request for a wearable technology product image.
41+
- Include the generated `image_url` as a markdown image for the user to review.
4442

45-
# Image Generation Tool
43+
Image Generation Tool:
4644

4745
- Image Generation Tool: Use the provided image generation tool to create the image based on the guidelines and user prompts.
4846
- Image URL: Use the provided `image_url` for the image generation tool.
49-
- Use the provided image as an inspiration for the logo design but leave the reference image out of the final image.
47+
- Use the provided image as an inspiration for the logo design but leave the reference image out of the final image.
48+
- Provide instructions for the LOGO design passed in by the user so as to best capture the user's intent.

api/tools/image/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def create_image(request: ImageCreateRequest) -> ImageResponse:
9494
# }
9595

9696
image_dict = {
97-
"base.png": io.BytesIO(open(f"{BASE_DIR}/images/base.png", "rb").read())
97+
"base.png": io.BytesIO(open(f"{BASE_DIR}/images/zava_base.png", "rb").read())
9898
}
9999

100100
if isinstance(request.image, str) and request.image.startswith("http"):
@@ -147,7 +147,7 @@ async def create_image(request: ImageCreateRequest) -> ImageResponse:
147147
# add mask
148148
mask_data = io.BytesIO(open(f"{BASE_DIR}/images/base_mask.png", "rb").read())
149149
form_data.add_field(
150-
"mask", mask_data, filename="mask.png", content_type="image/png"
150+
"mask", mask_data, filename="zava_mask.png", content_type="image/png"
151151
)
152152

153153
async with session.post(endpoint, headers=headers, data=form_data) as response:
1.04 MB
Loading
1.19 MB
Loading
1.03 MB
Loading

0 commit comments

Comments
 (0)