Load variables fix

Load temp/repetition variables in tts_server incase of API only usage.
This commit is contained in:
S95Sedan authored and GitHub committed 2024-01-16 00:37:10 +01:00
1 parent cefd1e045b
commit 5d406fbbfb
1 file changed
+4
+4
View File
@@ -57,6 +57,10 @@ params = load_config(configfile_path)
# check someone hasnt enabled lowvram on a system thats not cuda enabled
params["low_vram"] = "false" if not torch.cuda.is_available() else params["low_vram"]
# Load values for temperature and repetition_penalty
temperature = params["local_temperature"]
repetition_penalty = params["local_repetition_penalty"]
# Define the path to the JSON file
config_file_path = this_dir / "modeldownload.json"