Skip to content
Snippets Groups Projects
Commit 512d9bd0 authored by Mia Wang's avatar Mia Wang
Browse files

fixed user input

parent 0b392866
No related branches found
No related tags found
No related merge requests found
Pipeline #271992 passed
0.2093,0.2211,0.2119,0.2104,0.2115,0.2079,0.2094,0.2219,0.218,0.2188
\ No newline at end of file
......@@ -153,18 +153,27 @@ export default function Home() {
<Alert severity="error">
<AlertTitle>This field is required</AlertTitle>
</Alert>}
<Button
variant="contained"
component="label"
>
Upload File
<input
{...register('ds_upload')}
name="ds_upload"
type="file"
hidden
/>
</Button>
{watchFileds[0]!=='Other' &&
<input
{...register('ds_upload')}
name="ds_upload"
type="file"
hidden
/>}
{watchFileds[0]==='Other' &&
<Button
variant="contained"
component="label"
>
Upload File
<input
{...register('ds_upload')}
name="ds_upload"
type="file"
hidden
/>
</Button>
}
{dirtyFields.ds_upload && <Alert severity="success" variant='outlined'>File Submitted</Alert>}
</FormControl>
</CardContent>
......@@ -208,18 +217,27 @@ export default function Home() {
The networks provided above are for demonstration purposes. The relative training time is: LeNet {'>'} SimpleNet {'>'} EasyNet.
We recommend you to choose EasyNet for a quick demonstration of how well our auto-augment agents can perform.
</Typography>
<Button
variant="contained"
component="label"
>
Upload File
<input
{...register('network_upload')}
name="network_upload"
type="file"
hidden
/>
</Button>
{watchFileds[1]!=='Other' &&
<input
{...register('network_upload')}
name="network_upload"
type="file"
hidden
/>}
{watchFileds[1]==='Other' &&
<Button
variant="contained"
component="label"
>
Upload File
<input
{...register('network_upload')}
name="network_upload"
type="file"
hidden
/>
</Button>
}
{dirtyFields.network_upload && <Alert severity="success" variant='outlined'>File Submitted</Alert>}
</FormControl>
</CardContent>
......@@ -365,6 +383,7 @@ export default function Home() {
{watchFileds[1]==='Other' && !dirtyFields.network_upload &&
<Alert severity="error" variant='standard'>Please upload your network
.pkl file or select one of the network we have provided</Alert>}
</form>
</Grid>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment