Skip to content

Commit e7a34bc

Browse files
committed
add "Log with MLFlow" checkbox
1 parent 452b3b0 commit e7a34bc

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/components/mlflow-checkbox.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React, { ChangeEvent } from 'react';
2+
3+
import { Checkbox, FormControlLabel, FormGroup } from '@mui/material';
4+
5+
export type MLFlowCheckboxProps = {
6+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
7+
};
8+
9+
export function MLFlowCheckbox(props: MLFlowCheckboxProps): JSX.Element {
10+
return (
11+
<FormGroup>
12+
<FormControlLabel
13+
control={<Checkbox onChange={props.onChange} value={'mlflowLogging'} />}
14+
label="Log with MLFlow"
15+
/>
16+
</FormGroup>
17+
);
18+
}

src/mainviews/create-job.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import {
4343
import { Box, Stack } from '@mui/system';
4444
import { getErrorMessage } from '../util/errors';
4545
import { PackageInputFolderControl } from '../components/input-folder-checkbox';
46+
import { MLFlowCheckbox } from '../components/mlflow-checkbox';
4647

4748
export interface ICreateJobProps {
4849
model: ICreateJobModel;
@@ -511,6 +512,7 @@ export function CreateJob(props: ICreateJobProps): JSX.Element {
511512
onChange={handleInputChange}
512513
inputFile={props.model.inputFile}
513514
/>
515+
<MLFlowCheckbox onChange={handleInputChange} />
514516
<OutputFormatPicker
515517
label={trans.__('Output formats')}
516518
name="outputFormat"

0 commit comments

Comments
 (0)