From 8fbdb884c7038ee817786169880daba983fef2c6 Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 14 Oct 2024 10:45:44 +0800 Subject: [PATCH] chore: hide rerank tab --- src/pages/playground/components/input-list.tsx | 1 + src/pages/playground/index.tsx | 16 ++++++---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/pages/playground/components/input-list.tsx b/src/pages/playground/components/input-list.tsx index 35752605..b72945db 100644 --- a/src/pages/playground/components/input-list.tsx +++ b/src/pages/playground/components/input-list.tsx @@ -72,6 +72,7 @@ const InputList: React.FC = ({ textList, onChange }) => { handleTextChange(e.target.value, text)} > diff --git a/src/pages/playground/index.tsx b/src/pages/playground/index.tsx index e159c03b..7f925efe 100644 --- a/src/pages/playground/index.tsx +++ b/src/pages/playground/index.tsx @@ -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: - }, - { - label: 'Rerank', - value: 'reranker', - icon: } + // { + // label: 'Rerank', + // value: 'reranker', + // icon: + // } ]; const handleViewCode = useCallback(() => {