mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-08 16:00:01 +08:00
修正bug
This commit is contained in:
parent
745bd44132
commit
fe136e9493
@ -171,7 +171,7 @@ class TTS_Request(BaseModel):
|
|||||||
for key in req:
|
for key in req:
|
||||||
if hasattr(self, key):
|
if hasattr(self, key):
|
||||||
type_ = type(getattr(self, key))
|
type_ = type(getattr(self, key))
|
||||||
value = unquote(req[key])
|
value = unquote(str(req[key]))
|
||||||
if type_ == bool:
|
if type_ == bool:
|
||||||
value = value.lower() in ["true", "1"]
|
value = value.lower() in ["true", "1"]
|
||||||
elif type_ == int:
|
elif type_ == int:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user