Added my contributions to community-contributions
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"execution_count": null,
|
||||
"id": "3bb88086-ea9c-4766-9baf-a57bb69c3202",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -27,18 +27,10 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"execution_count": null,
|
||||
"id": "9dc24243-d20a-48aa-b90b-26ef90233e22",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"API key found and looks good so far!\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"load_dotenv(override=True)\n",
|
||||
"api_key = os.getenv('OPENAI_API_KEY')\n",
|
||||
@@ -57,7 +49,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 14,
|
||||
"execution_count": null,
|
||||
"id": "cb35e3d1-8733-4931-8744-9c3754793161",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -67,7 +59,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"execution_count": null,
|
||||
"id": "63d62eb3-3255-4046-863e-d866a833d1a6",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -89,41 +81,10 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 17,
|
||||
"execution_count": null,
|
||||
"id": "409a70a6-331a-4ea4-ab8d-7a46fffc70d7",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"How about \"The A-Team 2.0\"? Because clearly, you’re aiming for a sequel that’s already better than the original. Or maybe \"The Not-So-Secret League of Awesome\"? That one’s a real conversation starter! What vibe are you going for?\n",
|
||||
"[{'role': 'system', 'content': 'You are an assistant that analyzes the contents of a cric info website and provides a short summary of best team in IPL. Respond in markdown.'}, {'role': 'user', 'content': '\\n Get page title\\n'}]\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/markdown": [
|
||||
"# Best Team in IPL History\n",
|
||||
"\n",
|
||||
"The Indian Premier League (IPL) has seen various teams competing for the title since its inception in 2008. Some of the most successful teams in IPL history include:\n",
|
||||
"\n",
|
||||
"1. **Mumbai Indians**: They have clinched the IPL trophy a record five times (2013, 2015, 2017, 2019, 2020) and are known for their strong squad and strategic gameplay.\n",
|
||||
"\n",
|
||||
"2. **Chennai Super Kings**: With four titles (2010, 2011, 2018, 2021), the CSK has consistently been one of the top teams, led by the experienced MS Dhoni.\n",
|
||||
"\n",
|
||||
"3. **Kolkata Knight Riders**: They have won the championship twice (2012, 2014) and are recognized for their fan base and competitive spirit.\n",
|
||||
"\n",
|
||||
"Overall, the Mumbai Indians are often considered the best team in IPL history due to their multiple championships and consistent performance over the years."
|
||||
],
|
||||
"text/plain": [
|
||||
"<IPython.core.display.Markdown object>"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Step 1: Create your prompts\n",
|
||||
"system_prompt = \"You are an assistant that analyzes the contents of a cric info website \\\n",
|
||||
|
||||
Reference in New Issue
Block a user