import { useIntl } from '@umijs/max'; import { Input, Switch } from 'antd'; import React from 'react'; import { SwitchWrapper, Tips } from './constainers'; const NetworkConfig = () => { const intl = useIntl(); const [networkInterface, setNetworkInterface] = React.useState<{ enable: boolean; name?: string; }>({ enable: false, name: '' }); return (
Network Interface setNetworkInterface({ ...networkInterface, enable: checked }) } >
Enter the NIC name to use for distributed inference (e.g., mlx5_0). {networkInterface.enable && ( <> setNetworkInterface({ ...networkInterface, name: e.target.value }) } /> )}
); }; export default NetworkConfig;