parent
77ba3e8f26
commit
1a078657d8
2 changed files with 6 additions and 8 deletions
|
|
@ -20,7 +20,6 @@ const VALUE_LIMIT = {
|
||||||
max: 1,
|
max: 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
const key = 'score_threshold'
|
|
||||||
const ScoreThresholdItem: FC<Props> = ({
|
const ScoreThresholdItem: FC<Props> = ({
|
||||||
className,
|
className,
|
||||||
value,
|
value,
|
||||||
|
|
@ -39,9 +38,9 @@ const ScoreThresholdItem: FC<Props> = ({
|
||||||
return (
|
return (
|
||||||
<ParamItem
|
<ParamItem
|
||||||
className={className}
|
className={className}
|
||||||
id={key}
|
id='score_threshold'
|
||||||
name={t(`appDebug.datasetConfig.${key}`)}
|
name={t('appDebug.datasetConfig.score_threshold')}
|
||||||
tip={t(`appDebug.datasetConfig.${key}Tip`) as string}
|
tip={t('appDebug.datasetConfig.score_thresholdTip') as string}
|
||||||
{...VALUE_LIMIT}
|
{...VALUE_LIMIT}
|
||||||
value={value}
|
value={value}
|
||||||
enable={enable}
|
enable={enable}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ const VALUE_LIMIT = {
|
||||||
max: maxTopK,
|
max: maxTopK,
|
||||||
}
|
}
|
||||||
|
|
||||||
const key = 'top_k'
|
|
||||||
const TopKItem: FC<Props> = ({
|
const TopKItem: FC<Props> = ({
|
||||||
className,
|
className,
|
||||||
value,
|
value,
|
||||||
|
|
@ -41,9 +40,9 @@ const TopKItem: FC<Props> = ({
|
||||||
return (
|
return (
|
||||||
<ParamItem
|
<ParamItem
|
||||||
className={className}
|
className={className}
|
||||||
id={key}
|
id='top_k'
|
||||||
name={t(`appDebug.datasetConfig.${key}`)}
|
name={t('appDebug.datasetConfig.top_k')}
|
||||||
tip={t(`appDebug.datasetConfig.${key}Tip`) as string}
|
tip={t('appDebug.datasetConfig.top_kTip') as string}
|
||||||
{...VALUE_LIMIT}
|
{...VALUE_LIMIT}
|
||||||
value={value}
|
value={value}
|
||||||
enable={enable}
|
enable={enable}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue