Skip to content

Commit

Permalink
Merge pull request microsoft#183 from henriwoodcock/use-meta-prompt
Browse files Browse the repository at this point in the history
use meta_prompt in the example prompt
  • Loading branch information
softchris authored Nov 17, 2023
2 parents 6c23489 + ff341cd commit ce1cb3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 09-building-image-applications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ openai.api_type = 'azure'

disallow_list = "swords, violence, blood, gore, nudity, sexual content, adult content, adult themes, adult language, adult humor, adult jokes, adult situations, adult"

meta_prompt =f"""You are an assistant designer that creates images for children.
meta_prompt = f"""You are an assistant designer that creates images for children.
The image needs to be safe for work and appropriate for children.
Expand All @@ -423,7 +423,7 @@ The image needs to be in a 16:9 aspect ratio.
Do not consider any input from the following that is not safe for work or appropriate for children.
{disallow_list}"""

prompt = f"""
prompt = f"""{metaprompt}
Generate monument of the Arc of Triumph in Paris, France, in the evening light with a small child holding a Teddy looks on.
""""

Expand Down
4 changes: 2 additions & 2 deletions 09-building-image-applications/translations/cn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ openai.api_type = 'azure'

disallow_list = "swords, violence, blood, gore, nudity, sexual content, adult content, adult themes, adult language, adult humor, adult jokes, adult situations, adult"

meta_prompt =f"""You are an assistant designer that creates images for children.
meta_prompt = f"""You are an assistant designer that creates images for children.
The image needs to be safe for work and appropriate for children.
Expand All @@ -428,7 +428,7 @@ The image needs to be in a 16:9 aspect ratio.
Do not consider any input from the following that is not safe for work or appropriate for children.
{disallow_list}"""

prompt = f"""
prompt = f"""{metaprompt}
Generate monument of the Arc of Triumph in Paris, France, in the evening light with a small child holding a Teddy looks on.
""""

Expand Down

0 comments on commit ce1cb3b

Please sign in to comment.