From a95191c468f5fa81ca4ed080e2dd63bf6be0f744 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Wed, 18 Dec 2024 17:50:57 +0200 Subject: [PATCH] tts : minor fixes --- examples/tts/tts-outetts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/tts/tts-outetts.py b/examples/tts/tts-outetts.py index bebd38ef4a5fe..0f81192fca52d 100644 --- a/examples/tts/tts-outetts.py +++ b/examples/tts/tts-outetts.py @@ -1,6 +1,6 @@ import sys -import json -import struct +#import json +#import struct import requests import re @@ -162,7 +162,7 @@ def process_text(text: str): #print(json.dumps(response_json, indent=4)) # spectrogram -embd = response_json["data"][0]["embedding"] +embd = response_json[0]["embedding"] n_codes = len(embd) n_embd = len(embd[0])