Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetaRL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wang, Mia
MetaRL
Commits
512d9bd0
Commit
512d9bd0
authored
2 years ago
by
Mia Wang
Browse files
Options
Downloads
Patches
Plain Diff
fixed user input
parent
0b392866
No related branches found
No related tags found
No related merge requests found
Pipeline
#271992
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend_react/child_networks/CIFAR100_v1.txt
+1
-0
1 addition, 0 deletions
backend_react/child_networks/CIFAR100_v1.txt
src/pages/Home.js
+43
-24
43 additions, 24 deletions
src/pages/Home.js
with
44 additions
and
24 deletions
backend_react/child_networks/CIFAR100_v1.txt
0 → 100644
+
1
−
0
View file @
512d9bd0
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
This diff is collapsed.
Click to expand it.
src/pages/Home.js
+
43
−
24
View file @
512d9bd0
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment