Skip to content

Commit

Permalink
improve prompt generator
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicvaz committed Jan 18, 2024
1 parent ac185b3 commit 5e4146f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pieces/PromptCreatorForImageGeneratorPiece/piece.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ def piece_function(self, input_data: InputModel, secrets_data: SecretsModel):

template = """You have access to an AI that generates images through text prompts.
Your function is to write a prompt for this AI from a given context.
It is very importat that the prompt be very sucint and direct, around 30 to 100 characters.
If the context has characters or personas you should include them and what they are, for example:
- pedro is a person, so you should include "person" in the prompt.
- pedro is a dog, so you should include "dog" in the prompt.
- pedro is a ball, so you should include "ball" in the prompt.
It is very importat that the prompt be very sucint and direct, around 30 to 300 characters.
Examples of prompts:
- Cartoon of a dog playing with a ball in the park.
- A painting of a sunset in the mountains.
Expand Down

0 comments on commit 5e4146f

Please sign in to comment.