Fix console spam on TTS. Expand tokenizer textarea

This commit is contained in:
SillyLossy
2023-05-28 13:42:55 +03:00
parent da30b69471
commit 2cbfe7e571
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ async function doTokenCounter() {
<div class="justifyLeft">
<h4>Type / paste in the box below to see the number of tokens in the text.</h4>
<p>Selected tokenizer: ${selectedTokenizer}</p>
<textarea id="token_counter_textarea" class="wide100p textarea_compact margin-bot-10px" rows="10"></textarea>
<textarea id="token_counter_textarea" class="wide100p textarea_compact margin-bot-10px" rows="20"></textarea>
<div>Tokens: <span id="token_counter_result">0</span></div>
</div>
</div>`;

View File

@ -138,7 +138,7 @@ function resetTtsPlayback() {
// Reset audio element
audioElement.currentTime = 0;
audioElement.src = null;
audioElement.src = '';
// Clear any queue items
ttsJobQueue.splice(0, ttsJobQueue.length);