mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
add the last chunk to the list of chunks in web-qa.ipynb (#691)
This commit is contained in:
parent
5783656852
commit
7cda7e2df7
@ -780,6 +780,10 @@
|
|||||||
" chunk.append(sentence)\n",
|
" chunk.append(sentence)\n",
|
||||||
" tokens_so_far += token + 1\n",
|
" tokens_so_far += token + 1\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
" # Add the last chunk to the list of chunks\n",
|
||||||
|
" if chunk:\n",
|
||||||
|
" chunks.append(\". \".join(chunk) + \".\")\n",
|
||||||
|
"\n",
|
||||||
" return chunks\n",
|
" return chunks\n",
|
||||||
" \n",
|
" \n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user