Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] add method to deploy on spaces through huggingface_hub #5108

Open
davidberenstein1957 opened this issue Jun 25, 2024 · 2 comments
Open
Assignees

Comments

@davidberenstein1957
Copy link
Member

davidberenstein1957 commented Jun 25, 2024

Is your feature request related to a problem? Please describe.
Argilla is cool but sometimes deployment can contain a lot of clickety steps with copy_pasting.

Describe the solution you'd like
Some underlying code that goes over steps on https://huggingface.co/docs/hub/en/spaces-sdks-docker-argilla but through the huggingface_hubSDK.
https://huggingface.co/docs/huggingface_hub/main/en/guides/manage-spaces#manage-your-space

Also, the client might easily be initialized with the HF key headers after.

rg.deploy_on_spaces(
    repo_id="user/name",
    private=True,
    admin_username=...,
    admin_password=...,
    admin_apikey=...,
) 

show a message:

Argilla has been deployed on a private HF Space with url http://hf.co/spaces/user/name. You can now connect with 
Client(etc)

Describe alternatives you've considered

Additional context

@davidberenstein1957 davidberenstein1957 changed the title [FEATURE] add method to deploy on spaces through 'huggingface_hub` [FEATURE] add method to deploy on spaces through huggingface_hub Jun 26, 2024
@davidberenstein1957 davidberenstein1957 self-assigned this Jun 26, 2024
@davidberenstein1957
Copy link
Member Author

@davanstrien as hub expert, WDYT?

@davanstrien
Copy link
Contributor

I think this could be very nice, especially for tutorials/demos, etc. I think one thing to consider would be persistent storage. It probably doesn't make sense to set that as default, but I think if it's not enabled, it might be nice to keep showing warnings when interacting with the client?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants