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
a7df605f
Commit
a7df605f
authored
2 months ago
by
deep1401
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://github.com/transformerlab/transformerlab-app
parents
2ceeacbf
9f2a12fd
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/Train/ImportRecipeModal.tsx
+12
-0
12 additions, 0 deletions
...enderer/components/Experiment/Train/ImportRecipeModal.tsx
with
12 additions
and
0 deletions
src/renderer/components/Experiment/Train/ImportRecipeModal.tsx
+
12
−
0
View file @
a7df605f
...
@@ -35,6 +35,17 @@ export default function ImportRecipeModal({ open, setOpen, mutate }) {
...
@@ -35,6 +35,17 @@ export default function ImportRecipeModal({ open, setOpen, mutate }) {
const
recipes
=
recipesData
;
const
recipes
=
recipesData
;
const
{
data
:
pluginsData
,
error
:
pluginsError
,
isLoading
:
pluginsLoading
,
}
=
useSWR
(
chatAPI
.
Endpoints
.
Plugins
.
List
(),
fetcher
);
const
installedPlugins
=
pluginsData
?
pluginsData
.
map
(
plugin
=>
plugin
.
uniqueId
)
:
[];
// For any variables that need to be reset on close
// For any variables that need to be reset on close
const
handleClose
=
()
=>
{
const
handleClose
=
()
=>
{
mutate
();
mutate
();
...
@@ -225,6 +236,7 @@ export default function ImportRecipeModal({ open, setOpen, mutate }) {
...
@@ -225,6 +236,7 @@ export default function ImportRecipeModal({ open, setOpen, mutate }) {
<
td
>
<
td
>
<
Button
<
Button
size
=
"sm"
size
=
"sm"
disabled
=
{
!
(
installedPlugins
.
includes
(
row
.
training
?.
plugin
))
}
onClick
=
{
()
=>
{
onClick
=
{
()
=>
{
const
recipe_text
=
YAML
.
stringify
(
row
);
const
recipe_text
=
YAML
.
stringify
(
row
);
uploadRecipe
(
row
.
metadata
?.
name
,
recipe_text
);
uploadRecipe
(
row
.
metadata
?.
name
,
recipe_text
);
...
...
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