fix: hidden tokens input
This commit is contained in:
@@ -166,7 +166,7 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'InputNumber',
|
type: 'Slider',
|
||||||
name: 'max_new_tokens',
|
name: 'max_new_tokens',
|
||||||
label: {
|
label: {
|
||||||
text: 'playground.params.maxTokens',
|
text: 'playground.params.maxTokens',
|
||||||
@@ -174,10 +174,11 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [
|
|||||||
},
|
},
|
||||||
attrs: {
|
attrs: {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
|
inputnumber: true,
|
||||||
|
step: 1,
|
||||||
min: 0
|
min: 0
|
||||||
},
|
},
|
||||||
formItemAttrs: {
|
formItemAttrs: {
|
||||||
hidden: true,
|
|
||||||
getValueProps: (value: number) => {
|
getValueProps: (value: number) => {
|
||||||
return {
|
return {
|
||||||
value: value || null
|
value: value || null
|
||||||
|
|||||||
Reference in New Issue
Block a user