Skip to content

Instantly share code, notes, and snippets.

@oaustegard
Last active July 16, 2022 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oaustegard/ae4fd77a9ef5cb9c7f79d2981218ff9a to your computer and use it in GitHub Desktop.
Save oaustegard/ae4fd77a9ef5cb9c7f79d2981218ff9a to your computer and use it in GitHub Desktop.
GPT-3: list of 10 country songs and their spotify song links where the songs' lyrics mentions a lost dog
  1. "Old Yeller" by Rex Allen - https://open.spotify.com/track/6rqhFgbbKwnb9MLmUQDhG6
  2. "Sadie's Got Her New Dress On" by George Jones - https://open.spotify.com/track/3JZ4pnNtyxQfqvq5UBVzXr
  3. "A Boy Named Sue" by Johnny Cash - https://open.spotify.com/track/3N2UhXZI4Gf64Ku3cCjz2g
  4. "The Ballad of Davy Crockett" by Fess Parker - https://open.spotify.com/track/2zREWqPVgLbZ7x4sXrTqXO
  5. "Old Shep" by Red Foley - https://open.spotify.com/track/1DXcT4IcJhLJ0q6K4WQbCq
  6. "Lassie" by Tim McGraw - https://open.spotify.com/track/1rAWgK7r1Tt4UxHfZdWql7
  7. "Hound Dog" by Elvis Presley - https://open.spotify.com/track/0GmcGHywF5qLnIUK0ZK3I5
  8. "The Gambler" by Kenny Rogers - https://open.spotify.com/track/0cc6vwZN3zC4e0JyA5WQMQ
  9. "Old Dogs, Children and Watermelon Wine" by Tom T. Hall - https://open.spotify.com/track/1TGiGtSXbWB5zTq5ZH4NqK
  10. "Coal Miner's Daughter" by Loretta Lynn - https://open.spotify.com/track/6PEDIsdsVUxVyFSa3aKfS0
@oaustegard
Copy link
Author

OK list of songs; at least got genre mostly right
Some mention of dogs, though not necessarily ones running away
Complete hallucinations of Spotify urls - only two are actual urls and to different songs

@oaustegard
Copy link
Author

oaustegard commented Jul 16, 2022

import os
import openai

openai.api_key = os.getenv("OPENAI_API_KEY")

response = openai.Completion.create(
  model="text-davinci-002",
  prompt="list of 10 country songs and their spotify song links where the songs' lyrics mentions a lost dog",
  temperature=0.3,
  max_tokens=772,
  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