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
09a8e7ed
Commit
09a8e7ed
authored
4 weeks ago
by
sanjaycal
Browse files
Options
Downloads
Patches
Plain Diff
when run is pressed, run the workflow
parent
d2fdb0ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/renderer/components/Experiment/Workflows/index.tsx
+11
-2
11 additions, 2 deletions
src/renderer/components/Experiment/Workflows/index.tsx
with
11 additions
and
2 deletions
src/renderer/components/Experiment/Workflows/index.tsx
+
11
−
2
View file @
09a8e7ed
...
@@ -77,6 +77,10 @@ export default function Workflows({ experimentInfo }) {
...
@@ -77,6 +77,10 @@ export default function Workflows({ experimentInfo }) {
return
out
;
return
out
;
}
}
async
function
runWorkflow
(
workflowId
:
string
){
await
fetch
(
chatAPI
.
Endpoints
.
Workflows
.
RunWorkflow
(
workflowId
));
}
return
(
return
(
<
Sheet
<
Sheet
sx
=
{
{
sx
=
{
{
...
@@ -170,11 +174,16 @@ export default function Workflows({ experimentInfo }) {
...
@@ -170,11 +174,16 @@ export default function Workflows({ experimentInfo }) {
Select Workflow
Select Workflow
</
Box
>
</
Box
>
)
}
)
}
{
selectedWorkflow
&&
<
Box
pl
=
{
2
}
display
=
"flex"
flexDirection
=
"column"
gap
=
{
1
}
>
<
Box
pl
=
{
2
}
display
=
"flex"
flexDirection
=
"column"
gap
=
{
1
}
>
<
Button
startDecorator
=
{
<
PlayIcon
/>
}
>
Run
</
Button
>
{
selectedWorkflow
.
status
!=
"
RUNNING
"
?
(
<
Button
startDecorator
=
{
<
PlayIcon
/>
}
onClick
=
{
()
=>
runWorkflow
(
selectedWorkflow
.
id
)
}
>
Run
</
Button
>
)
:
(
<
Button
startDecorator
=
{
<
PlayIcon
/>
}
disabled
=
{
true
}
>
Running
</
Button
>
)
}
<
Button
variant
=
"outlined"
>
Edit
</
Button
>
<
Button
variant
=
"outlined"
>
Edit
</
Button
>
<
Button
variant
=
"outlined"
>
Fight
</
Button
>
<
Button
variant
=
"outlined"
>
Fight
</
Button
>
</
Box
>
</
Box
>
}
</
Box
>
</
Box
>
</
Box
>
</
Box
>
</
Sheet
>
</
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