From e863af05e12322d33371771e9575ccf2c9ca0748 Mon Sep 17 00:00:00 2001 From: Sid Sharma Date: Tue, 7 May 2024 23:42:10 +0000 Subject: [PATCH] revert: formatting --- app.py | 1 - fam/llm/fast_inference.py | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/app.py b/app.py index 09f7e75..abddc0b 100644 --- a/app.py +++ b/app.py @@ -27,7 +27,6 @@ } - def denormalise_top_p(top_p): # returns top_p in the range [0.9, 1.0] return round(0.9 + top_p / 100, 2) diff --git a/fam/llm/fast_inference.py b/fam/llm/fast_inference.py index ae206d1..9aba616 100644 --- a/fam/llm/fast_inference.py +++ b/fam/llm/fast_inference.py @@ -1,6 +1,4 @@ -import json import os -import pathlib import shutil import tempfile import time @@ -194,19 +192,6 @@ def synthesise(self, text: str, spk_ref_path: str, top_p=0.95, guidance_scale=3. ) ) - # save metadata - json.dump( - { - "speaker": spk_ref_path, - "text": text, - "top_p": top_p, - "guidance_scale": guidance_scale, - "temperature": temperature, - "output": str(wav_file) + ".wav", - }, - pathlib.Path(str(wav_file) + ".json").open("w"), - ) - return str(wav_file) + ".wav"