Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Transformerlab App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
TransformerLab
Transformerlab App
Commits
f3e18e1b
Commit
f3e18e1b
authored
1 year ago
by
ali asaria
Browse files
Options
Downloads
Patches
Plain Diff
Select a model page scrolls
fixes #22
parent
c59ac0e9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/renderer/components/Experiment/Foundation/SelectAModel.tsx
+12
-45
12 additions, 45 deletions
...enderer/components/Experiment/Foundation/SelectAModel.tsx
with
12 additions
and
45 deletions
src/renderer/components/Experiment/Foundation/SelectAModel.tsx
+
12
−
45
View file @
f3e18e1b
/* eslint-disable jsx-a11y/anchor-is-valid */
import
{
FormControl
,
FormLabel
,
Select
,
Typography
,
Option
}
from
'
@mui/joy
'
;
import
{
FormControl
,
FormLabel
,
Select
,
Typography
,
Option
,
Sheet
,
}
from
'
@mui/joy
'
;
import
{
useLocation
}
from
'
react-router-dom
'
;
...
...
@@ -25,48 +32,6 @@ export default function SelectAModel({
const
location
=
useLocation
();
function
foundationSetter
(
model
)
{
setFoundation
(
model
);
setAdaptor
(
''
);
}
const
renderFilters
=
()
=>
(
<>
<
FormControl
size
=
"sm"
>
<
FormLabel
>
License
</
FormLabel
>
<
Select
placeholder
=
"Filter by license"
slotProps
=
{
{
button
:
{
sx
:
{
whiteSpace
:
'
nowrap
'
}
}
}
}
value
=
{
filters
?.
license
}
disabled
onChange
=
{
(
e
,
newValue
)
=>
{
setFilters
({
...
filters
,
license
:
newValue
});
}
}
>
{
licenseTypes
.
map
((
type
)
=>
(
<
Option
value
=
{
type
}
>
{
type
}
</
Option
>
))
}
</
Select
>
</
FormControl
>
<
FormControl
size
=
"sm"
>
<
FormLabel
>
Architecture
</
FormLabel
>
<
Select
placeholder
=
"All"
disabled
value
=
{
filters
?.
architecture
}
onChange
=
{
(
e
,
newValue
)
=>
{
setFilters
({
...
filters
,
architecture
:
newValue
});
}
}
>
{
modelTypes
.
map
((
type
)
=>
(
<
Option
value
=
{
type
}
>
{
type
}
</
Option
>
))
}
</
Select
>
</
FormControl
>
</>
);
if
(
experimentInfo
?.
config
?.
foundation
)
{
return
(
<
CurrentFoundationInfo
...
...
@@ -84,7 +49,9 @@ export default function SelectAModel({
}
return
(
<>
<
Sheet
sx
=
{
{
display
:
'
flex
'
,
flexDirection
:
'
column
'
,
height
:
'
100%
'
,
pb
:
2
}
}
>
<
Typography
level
=
"h1"
mb
=
{
2
}
>
Select a Model
</
Typography
>
...
...
@@ -95,6 +62,6 @@ export default function SelectAModel({
setAdaptor
=
{
setAdaptor
}
pickAModelMode
/>
</>
</
Sheet
>
);
}
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