Hugging Face Spaces 推出 Dev Mode,支持一键连接 VS Code 和 SSH
Introducing Spaces Dev Mode for a seamless developer experience
Hugging Face 为 Spaces 推出 Dev Mode,可一键通过 VS Code 或 SSH 直连 Space,直接在 Space 内编辑代码,无需再用 git 推送本地改动。该功能目前处于 beta 阶段,仅面向 PRO 订阅用户开放,在 Space 设置中启用后会自动重启,改完代码点 Refresh 即可测试,满意后再 commit 和 merge 保存。
HF Mirror Spaces makes it easy for you to create and deploy AI-powered demos in minutes. Over 500,000 Spaces have been created by the HF Mirror community and it keeps growing! As part of HF Mirror Spaces, we recently released support for “Dev Mode”, to make your experience of building Spaces even more seamless.
Spaces Dev Mode lets you connect with VS Code or SSH directly to your Space. In a click, you can connect to your Space, and start editing your code, removing the need to push your local changes to the Space repository using git. Let's see how to setup this feature in your Space’s settings 🔥
Enable Dev Mode
Spaces Dev Mode is currently in beta, and available to PRO subscribers. To learn more about Spaces Dev Mode, check out the documentation. After creating your space, navigate to Settings.
Scroll down in the Settings and click on “Enable Dev Mode”. Your Space will automatically Restart.
Connect to VS Code
Once your Space is in a Running state, you can connect to VS Code locally or in your browser in one click! You can also use SSH to set up the connection to your Space in another IDE.
For example, let’s change the color theme of this Gradio Space. After editing the code, no need to push your changes and rebuild the Space container to test it. Go directly in your Space and click “Refresh”.
That’s it! Once you’re satisfied with your changes, you can commit and merge to persist them.
Go build your first Spaces here!
来源:Hugging Face Blog · hf-mirror.com




