Download web/src/components/page-rank.tsx from Starowo/ragflow: direct link, hf CLI and curl.
- Browser
- Download file 789 Bytes
-
https://huggingface.co/spaces/Starowo/ragflow/resolve/main/web/src/components/page-rank.tsx
- Command line
-
hf download hf://spaces/Starowo/ragflow/web/src/components/page-rank.tsx
-
curl -L -o page-rank.tsx https://huggingface.co/spaces/Starowo/ragflow/resolve/main/web/src/components/page-rank.tsx
789 Bytes
| import { useTranslate } from '@/hooks/common-hooks'; | |
| import { Flex, Form, InputNumber, Slider } from 'antd'; | |
| const PageRank = () => { | |
| const { t } = useTranslate('knowledgeConfiguration'); | |
| return ( | |
| <Form.Item label={t('pageRank')} tooltip={t('pageRankTip')}> | |
| <Flex gap={20} align="center"> | |
| <Flex flex={1}> | |
| <Form.Item | |
| name={['pagerank']} | |
| noStyle | |
| initialValue={0} | |
| rules={[{ required: true }]} | |
| > | |
| <Slider max={100} style={{ width: '100%' }} /> | |
| </Form.Item> | |
| </Flex> | |
| <Form.Item name={['pagerank']} noStyle rules={[{ required: true }]}> | |
| <InputNumber max={100} min={0} /> | |
| </Form.Item> | |
| </Flex> | |
| </Form.Item> | |
| ); | |
| }; | |
| export default PageRank; | |