mirror of
https://github.com/openai/openai-cookbook
synced 2024-11-04 06:00:33 +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",
|
||||
" tokens_so_far += token + 1\n",
|
||||
"\n",
|
||||
" # Add the last chunk to the list of chunks\n",
|
||||
" if chunk:\n",
|
||||
" chunks.append(\". \".join(chunk) + \".\")\n",
|
||||
"\n",
|
||||
" return chunks\n",
|
||||
" \n",
|
||||
"\n",
|
||||
|
Loading…
Reference in New Issue
Block a user