Skip to content

Commit

Permalink
Delete unused variable to fix CI error (#2695)
Browse files Browse the repository at this point in the history
It used only for warning that we don't use:
https://github.com/suno-ai/bark/blob/main/bark/generation.py#L418
  • Loading branch information
aleksandr-mokrov authored Jan 27, 2025
1 parent aca8d11 commit 0d4dc3b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion notebooks/bark-text-to-audio/bark-text-to-audio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,6 @@
" semantic_history = None\n",
" encoded_text = np.ascontiguousarray(_tokenize(tokenizer, text)) + TEXT_ENCODING_OFFSET\n",
" if len(encoded_text) > 256:\n",
" p = round((len(encoded_text) - 256) / len(encoded_text) * 100, 1)\n",
" encoded_text = encoded_text[:256]\n",
" encoded_text = np.pad(\n",
" encoded_text,\n",
Expand Down

0 comments on commit 0d4dc3b

Please sign in to comment.