Attempt locale-independent float value.
Attempt to resolve suspicion that some OS/Language character sets may be using a comma for decimal separation, rather than a period e.g. `10,0` vs `10.0` This could be affecting the repetition penalty setting with XTTS when called from a command line/terminal request where the period `.` isnt being specifed.
This commit is contained in:
1 parent
a40c7a7729
commit
a8ec5e19ce
1 file changed
+2
-1
+2
-1
@@ -1216,7 +1216,8 @@ def get_params_speed():
|
||||
def get_params_temperature():
|
||||
return model_engine.temperature_set
|
||||
def get_params_repetition():
|
||||
return model_engine.repetitionpenalty_set
|
||||
value = model_engine.repetitionpenalty_set
|
||||
return float(str(value).replace(',', '.'))
|
||||
def get_params_pitch():
|
||||
return model_engine.pitch_set
|
||||
def get_character_voice_gen():
|
||||
|
||||
Reference in new issue
Block a user