Skip to content

Commit

Permalink
remove duplicated text
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed May 19, 2024
1 parent 1dd9c0a commit a8a2801
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ch06/01_main-chapter-code/ch06.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"name": "stdout",
"output_type": "stream",
"text": [
"matplotlib version: 3.8.2\n",
"numpy version: 1.26.0\n",
"matplotlib version: 3.7.2\n",
"numpy version: 1.25.2\n",
"tiktoken version: 0.5.1\n",
"torch version: 2.2.2\n",
"tensorflow version: 2.15.0\n",
"pandas version: 2.2.1\n"
"pandas version: 2.0.3\n"
]
}
],
Expand Down Expand Up @@ -964,7 +964,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Is the following text 'spam'? Answer with 'yes' or 'no': 'You are a winner you have been specially selected to receive $1000 cash or a $2000 award.' Answer with 'yes' or 'no'. Answer with 'yes' or 'no'. Answer with 'yes' or 'no'. Answer with 'yes'\n"
"Is the following text 'spam'? Answer with 'yes' or 'no': 'You are a winner you have been specially selected to receive $1000 cash or a $2000 award.'\n",
"\n",
"The following text 'spam'? Answer with 'yes' or 'no': 'You are a winner\n"
]
}
],
Expand All @@ -973,7 +975,6 @@
" \"Is the following text 'spam'? Answer with 'yes' or 'no':\"\n",
" \" 'You are a winner you have been specially\"\n",
" \" selected to receive $1000 cash or a $2000 award.'\"\n",
" \" Answer with 'yes' or 'no'.\"\n",
")\n",
"\n",
"token_ids = generate_text_simple(\n",
Expand Down Expand Up @@ -2355,7 +2356,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit a8a2801

Please sign in to comment.