Skip to content

Commit

Permalink
Add clone documentation
Browse files Browse the repository at this point in the history
* Update spaces-overview.md

Added Clone Repo button section

* Update docs/hub/spaces-overview.md

Co-authored-by: Omar Sanseviero <[email protected]>

* Update spaces-overview.md

Updated images

---------

Co-authored-by: Omar Sanseviero <[email protected]>
  • Loading branch information
Michellehbn and osanseviero authored Aug 8, 2023
1 parent 54d819f commit 5092547
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docs/hub/spaces-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ If you want to duplicate a Space, you can click the three dots at the top right

Some Spaces might have environment variables that you may need to set up. In these cases, the duplicate workflow will auto-populate the public Variables from the source Space, and give you a warning about setting up the Secrets. The duplicated Space will use a free CPU hardware by default, but you can later upgrade if needed.


## Networking

If your Space needs to make any network requests, you can make requests through the standard HTTP and HTTPS ports (80 and 443) along with port 8080. Any requests going to other ports will be blocked.
Expand All @@ -104,3 +103,25 @@ In some cases, you might be interested in having programmatic access to the Spac
* `SPACE_TITLE`: I Like Flan (specified in the README file)
* `SPACE_ID`: `osanseviero/i-like-flan`
* `SPACE_SUBDOMAIN`: `osanviero-i-like-flan` (the space's embed url is https://osanviero-i-like-flan.hf.space)


## Clone the Repository

You can easily clone the repo in your Space. Start cloning by clicking on the dropdown menu in the top right of your Space page:

<div class="flex justify-center">
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/SpacesCloneRepo2.png"/>
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/SpacesCloneRepo1.png"/>
</div>

Select "Clone repository", and then you'll be able to follow the instructions to clone the Space repo to your local machine using HTTPS or SSH.

<div class="flex justify-center">
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/HttpsClone2.png"/>
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/HttpsClone1.png"/>
</div>

<div class="flex justify-center">
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/SSHClone2.png"/>
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/SSHClone1.png"/>
</div>

0 comments on commit 5092547

Please sign in to comment.