chore: hide rerank tab

This commit is contained in:
jialin
2024-10-14 10:46:32 +08:00
parent ec68ce082e
commit 8fbdb884c7
2 changed files with 7 additions and 10 deletions
@@ -72,6 +72,7 @@ const InputList: React.FC<InputListProps> = ({ textList, onChange }) => {
<RowTextarea
label={`${index + 1}.`}
value={text.text}
placeholder="Input your text"
onChange={(e) => handleTextChange(e.target.value, text)}
></RowTextarea>
</div>
+6 -10
View File
@@ -1,10 +1,6 @@
import IconFont from '@/components/icon-font';
import HotKeys from '@/config/hotkeys';
import {
FileSearchOutlined,
MessageOutlined,
OneToOneOutlined
} from '@ant-design/icons';
import { MessageOutlined, OneToOneOutlined } from '@ant-design/icons';
import { PageContainer } from '@ant-design/pro-components';
import { useIntl } from '@umijs/max';
import { Button, Segmented, Space, Tabs, TabsProps } from 'antd';
@@ -38,12 +34,12 @@ const Playground: React.FC = () => {
label: intl.formatMessage({ id: 'menu.compare' }),
value: 'compare',
icon: <OneToOneOutlined />
},
{
label: 'Rerank',
value: 'reranker',
icon: <FileSearchOutlined />
}
// {
// label: 'Rerank',
// value: 'reranker',
// icon: <FileSearchOutlined />
// }
];
const handleViewCode = useCallback(() => {