Auto-deploy to Spaces#27
Merged
Merged
Conversation
* Add a space_id param to trackio.init, which will use an existing trackio space or deploy one on demand if it does not yet exist. * Fix imports in ui.py and its relative dependencies to work both within and outside of a package/module. Gradio loads its app file outside of a module context. * Add a README.md to trackio to default to the correct app file when uploading to a new Space. TODO / not yet tested: * Block metrics from non-authenticated clients (I think it is currently wide open and always deploys on a public space) * Better UX for specifying HF_TOKEN when not specified
Collaborator
Author
|
@abidlabs if this looks good to you please approve and I'll merge. Thanks! |
Member
|
Sorry @znation for the delay, will review this tom! |
Collaborator
Author
|
@abidlabs oh, no worries, I am not blocked so please take your time. |
abidlabs
reviewed
May 21, 2025
| @@ -0,0 +1,5 @@ | |||
| --- | |||
| sdk: gradio | |||
| sdk_version: 5.30.0 | |||
Member
There was a problem hiding this comment.
I think it'd be better to get the user's gr.__version__ and use that here to ensure a consistent experience locally and on Spaces.
Member
Collaborator
Author
|
Thanks @abidlabs, I will add a README section and then merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

TODO / not yet tested: