feat: model file is lora
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ModelFileFormData as FormData } from '@/pages/resources/config/types';
|
||||
import {
|
||||
CheckboxField,
|
||||
Input as CInput,
|
||||
Cascader as SealCascader,
|
||||
Select as SealSelect,
|
||||
@@ -240,6 +241,20 @@ const TargetForm: React.FC<TargetFormProps> = forwardRef((props, ref) => {
|
||||
></CInput.Input>
|
||||
</Form.Item>
|
||||
)}
|
||||
{source === modelSourceMap.local_path_value && (
|
||||
<Form.Item<FormData>
|
||||
name="is_lora"
|
||||
key="is_lora"
|
||||
valuePropName="checked"
|
||||
noStyle
|
||||
>
|
||||
<CheckboxField
|
||||
label={intl.formatMessage({
|
||||
id: 'resources.modelfiles.form.isLora'
|
||||
})}
|
||||
></CheckboxField>
|
||||
</Form.Item>
|
||||
)}
|
||||
</Form>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user