mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Fix console spam on TTS. Expand tokenizer textarea
This commit is contained in:
		| @@ -12,7 +12,7 @@ async function doTokenCounter() { | |||||||
|         <div class="justifyLeft"> |         <div class="justifyLeft"> | ||||||
|             <h4>Type / paste in the box below to see the number of tokens in the text.</h4> |             <h4>Type / paste in the box below to see the number of tokens in the text.</h4> | ||||||
|             <p>Selected tokenizer: ${selectedTokenizer}</p> |             <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>Tokens: <span id="token_counter_result">0</span></div> | ||||||
|         </div> |         </div> | ||||||
|     </div>`; |     </div>`; | ||||||
|   | |||||||
| @@ -138,7 +138,7 @@ function resetTtsPlayback() { | |||||||
|  |  | ||||||
|     // Reset audio element |     // Reset audio element | ||||||
|     audioElement.currentTime = 0; |     audioElement.currentTime = 0; | ||||||
|     audioElement.src = null; |     audioElement.src = ''; | ||||||
|  |  | ||||||
|     // Clear any queue items |     // Clear any queue items | ||||||
|     ttsJobQueue.splice(0, ttsJobQueue.length); |     ttsJobQueue.splice(0, ttsJobQueue.length); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user