Skip to content

Instantly share code, notes, and snippets.

@robgon-art
Last active September 6, 2022 20:43
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robgon-art/e4dcdba846e7f57875496cb95fb2ca03 to your computer and use it in GitHub Desktop.
Save robgon-art/e4dcdba846e7f57875496cb95fb2ca03 to your computer and use it in GitHub Desktop.
import os
import openai
openai.api_key = os.getenv("OPENAI_API_KEY")
response = openai.Completion.create(
engine="davinci-instruct-beta-v3",
prompt="Create prompts to render fictional people at different ages and nationalities.\n\n1. A watercolor painting",
temperature=0.7,
max_tokens=64,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment