Skip to content

Instantly share code, notes, and snippets.

View sampoder's full-sized avatar
🐻
go bears

Sam Poder sampoder

🐻
go bears
View GitHub Profile
<tournament name="What The Pwaa!" short="What The Pwaa!"><round name="Round 1" abbreviation="R1" elimination="false" feedback-weight="0.0"><debate id="D58" adjudicators="A265" chair="A265" venue="V29" motion="M8"><side team="T30"><ballot adjudicators="A265" minority="false" ignored="false" rank="1">48.0</ballot><speech speaker="S106" reply="False"><ballot adjudicators="A265">16.0</ballot></speech><speech speaker="S107" reply="False"><ballot adjudicators="A265">16.0</ballot></speech><speech speaker="S105" reply="False"><ballot adjudicators="A265">16.0</ballot></speech></side><side team="T48"><ballot adjudicators="A265" minority="false" ignored="false" rank="2">47.0</ballot><speech speaker="S161" reply="False"><ballot adjudicators="A265">14.0</ballot></speech><speech speaker="S159" reply="False"><ballot adjudicators="A265">16.0</ballot></speech><speech speaker="S160" reply="False"><ballot adjudicators="A265">17.0</ballot></speech></side></debate><debate id="D61" adjudicators="A200" chair="A200" venue="V19" moti
### This is very hacky and jank but I made it for a bit of fun!
import openai
def generateNextParagraph(previous_with_choices, past, choice):
completion = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": f"""
{previous_with_choices}

Getting started with building ML-powered web applications.

Reference sheet & Additional Resources

Head to editor.p5js.org to get started.

<script src="https://unpkg.com/ml5@1/dist/ml5.js"></script>