Skip to content

Commit

Permalink
fix prompt lag w override
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarx committed Oct 9, 2022
1 parent 1680cc1 commit 6b7ceb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Video_Killed_The_Radio_Star_Defusion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@
" \n",
" if prompt_lag and (idx > 0):\n",
" rec_prev = prompt_starts[idx -1]\n",
" prev_prompt = rec_prev['override_prompt']\n",
" prev_prompt = rec_prev.get('override_prompt','').strip()\n",
" if not prev_prompt:\n",
" prev_prompt = rec_prev['prompt']\n",
" prompt = f\"{prev_prompt}, {prompt}\"\n",
Expand Down Expand Up @@ -1062,7 +1062,7 @@
"try:\n",
" from prefetch_generator import BackgroundGenerator\n",
"except:\n",
" !pip install prefetch_generator \n",
" !pip install prefetch_generator\n",
" from prefetch_generator import BackgroundGenerator\n",
"\n",
"from vktrs.tsp import (\n",
Expand Down

0 comments on commit 6b7ceb4

Please sign in to comment.