[AiLab] Export to App Lab function to pass to AI Lab levels #38468
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Continuation of #38428 and #38463 to build out the AI Lab - App Lab integration
Compatible with ML Playground PR #52
Sets up an "exportToAppLab" function that can be called from AI Lab to save a trained model and opens a new App Lab project in preparation to reference that saved model. The model id is passed as a query param to the new App Lab project.
2 issues still to sort out:
1.)
/projects/applab/new
redirects to/projects/applab/<new_channel_id>/edit
so I'll need to figure out how to intercept the model id query param and get it into a usable place in the context of App Lab2.)
AiLab.js
doesn't have access to CDO.studio_url, but it'd be great to make the link to App Lab relative to environment.