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
b870b4a5
Commit
b870b4a5
authored
3 weeks ago
by
sanjaycal
Browse files
Options
Downloads
Patches
Plain Diff
add downloads to frontend
parent
970b7e57
No related branches found
Branches containing commit
No related tags found
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/Workflows/NewNodeModal.tsx
+22
-0
22 additions, 0 deletions
...renderer/components/Experiment/Workflows/NewNodeModal.tsx
with
22 additions
and
0 deletions
src/renderer/components/Experiment/Workflows/NewNodeModal.tsx
+
22
−
0
View file @
b870b4a5
...
...
@@ -85,6 +85,21 @@ export default function NewNodeModal({
JSON
.
stringify
(
node
)
)
);
}
else
if
(
mode
==
'
DOWNLOAD_MODEL
'
)
{
const
model
=
formData
.
get
(
'
model
'
)
as
string
;
const
config
=
JSON
.
parse
(
selectedWorkflow
.
config
);
console
.
log
(
config
);
const
node
=
{
name
:
name
,
type
:
'
DOWNLOAD_MODEL
'
,
model
:
model
,
};
await
fetch
(
chatAPI
.
Endpoints
.
Workflows
.
AddNode
(
selectedWorkflow
.
id
,
JSON
.
stringify
(
node
)
)
);
}
else
{
const
node
=
JSON
.
parse
(
formData
.
get
(
'
node
'
)
as
string
);
node
.
name
=
name
;
...
...
@@ -112,6 +127,7 @@ export default function NewNodeModal({
onChange
=
{
handleModeChange
}
required
>
<
Option
value
=
"DOWNLOAD_MODEL"
>
DOWNLOAD MODEL
</
Option
>
<
Option
value
=
"TRAIN"
>
TRAIN
</
Option
>
<
Option
value
=
"EVAL"
>
EVAL
</
Option
>
<
Option
value
=
"OTHER"
>
OTHER
</
Option
>
...
...
@@ -119,6 +135,12 @@ export default function NewNodeModal({
</
FormControl
>
<
FormControl
>
{
mode
==
'
DOWNLOAD_MODEL
'
&&
(
<>
<
FormLabel
>
Huggingface Model Id
</
FormLabel
>
<
Input
autoFocus
required
name
=
"model"
/>
</>
)
}
{
mode
==
'
TRAIN
'
&&
(
<>
<
FormLabel
>
Training Template
</
FormLabel
>
...
...
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