Load variables fix
Load temp/repetition variables in tts_server incase of API only usage.
This commit is contained in:
1 parent
cefd1e045b
commit
5d406fbbfb
1 file changed
+4
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user