fix: tts default params
This commit is contained in:
@@ -45,10 +45,10 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'AutoComplete',
|
||||
type: 'Input',
|
||||
name: 'instructions',
|
||||
label: {
|
||||
text: 'playground.params.voiceStyle',
|
||||
text: 'playground.params.instructions',
|
||||
isLocalized: true
|
||||
},
|
||||
attrs: {
|
||||
@@ -78,7 +78,8 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [
|
||||
attrs: {
|
||||
allowClear: true,
|
||||
step: 1,
|
||||
min: 0
|
||||
min: 0,
|
||||
max: 4096
|
||||
},
|
||||
formItemAttrs: {
|
||||
getValueProps: (value: number) => {
|
||||
|
||||
@@ -264,7 +264,6 @@ const GroundTTS: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
...pre,
|
||||
..._.pick(model?.meta || {}, MetaFields),
|
||||
task_type: model?.meta?.task_type,
|
||||
max_new_tokens: model?.meta?.max_model_len || null,
|
||||
model: value,
|
||||
voice: newList[0]?.value
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user