Skip to content

Commit

Permalink
Merge pull request #76 from rimgosu/main
Browse files Browse the repository at this point in the history
update: prompt update
  • Loading branch information
rimgosu authored Feb 20, 2024
2 parents 3b76e11 + 52003b9 commit 3b4d320
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions app/services/image_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,34 @@
promptDict = {
1: """
please make cute
This picture was painted by a child.
Please change this picture a little bit more cute.
I want to keep most of the original.
Arms and legs must be in the form of characters.
Please don't put your face and body in.
I just wish I had one character.
And the parts other than the character outline must be a white background, so please make this important.
please make cute This picture was painted by a child.
Please change this picture a little bit more cute.
I want to keep most of the original.
Arms and legs must be in the form of characters.
Please don't put your face and body in. I just wish I had one character.
And the parts other than the character outline must be a white background, so please make this important.
white background.
""",
2: """
please make cool
This picture was painted by a child.
Please change this picture a little bit more cute.
I want to keep most of the original.
Arms and legs must be in the form of characters.
Please don't put your face and body in.
I just wish I had one character.
And the parts other than the character outline must be a white background, so please make this important.
Please change this picture a little bit more cute.
I want to keep most of the original.
Arms and legs must be in the form of characters.
Please don't put your face and body in. I just wish I had one character.
And the parts other than the character outline must be a white background, so please make this important.
white background.
"""
}

async def create_image(promptSelect: int, raw_img_url: str) -> dict:
prompt = promptDict[promptSelect] + "\n" + raw_img_url
prompt += """
--no background, shadow, surrounding friend, surrounding objects
--quality 0.25
--stylize 50
"""

headers = {
'Authorization': f'Bearer {MID_API_KEY}',
'Content-Type': 'application/json'
Expand Down

0 comments on commit 3b4d320

Please sign in to comment.