argilla-io / argilla

Argilla is a collaboration platform for AI engineers and domain experts that require high-quality outputs, full data ownership, and overall efficiency.
https://docs.argilla.io/en/latest/
3.63k stars 339 forks source link

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

Open davidberenstein1957 opened 5 days ago

davidberenstein1957 commented 5 days ago

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 commented 5 days ago

@davanstrien as hub expert, WDYT?

davanstrien commented 5 hours ago

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?