You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -94,7 +94,7 @@ If you want to duplicate a Space, you can click the three dots at the top right
94
94
95
95
* Owner: The duplicated Space can be under your account or any organization in which you have write access
96
96
* Space name
97
-
* Visibility: The Space is private by default. Read more about private repositories [here](./repositories-settings#private-repositories).
97
+
* Visibility: The Space is private by default. Read more about private repositories [here](./repositories-settings#private-repositories).
98
98
* Hardware: You can choose the hardware on which the Space will be running. Read more about hardware upgrades [here](./spaces-gpus).
99
99
* Storage: If the original repo uses persistent storage, you will be prompted to choose a storage tier. Read more about persistent storage [here](./spaces-storage).
100
100
* Secrets and variables: If the original repo has set some secrets and variables, you'll be able to set them while duplicating the repo.
@@ -115,12 +115,13 @@ Paused time is not billed.
115
115
In some cases, you might be interested in having programmatic access to the Space author or repository name. This feature is particularly useful when you expect users to duplicate your Space. To help with this, Spaces exposes different environment variables at runtime. Given a Space [`osanseviero/i-like-flan`](https://huggingface.co/spaces/osanseviero/i-like-flan):
116
116
117
117
*`CPU_CORES`: 4
118
-
*`MEMORY`: 15Gi
118
+
*`MEMORY`: 15Gi
119
119
*`SPACE_AUTHOR_NAME`: osanseviero
120
120
*`SPACE_REPO_NAME`: i-like-flan
121
121
*`SPACE_TITLE`: I Like Flan (specified in the README file)
122
122
*`SPACE_ID`: `osanseviero/i-like-flan`
123
123
*`SPACE_HOST`: `osanseviero-i-like-flan.hf.space`
124
+
*`SPACE_CREATOR_USER_ID`: `6032802e1f993496bc14d9e3` - This is the ID of the user that originally created the Space. It's useful if the Space is under an organization. You can get the user information with an API call to `https://huggingface.co/api/users/{SPACE_CREATOR_USER_ID}/overview`.
124
125
125
126
In case [OAuth](./spaces-oauth) is enabled for your Space, the following variables will also be available:
126
127
@@ -131,14 +132,14 @@ In case [OAuth](./spaces-oauth) is enabled for your Space, the following variabl
131
132
132
133
## Clone the Repository
133
134
134
-
You can easily clone your Space repo locally. Start by clicking on the dropdown menu in the top right of your Space page:
135
+
You can easily clone your Space repo locally. Start by clicking on the dropdown menu in the top right of your Space page:
@@ -152,7 +153,7 @@ Select "Clone repository", and then you'll be able to follow the instructions to
152
153
153
154
## Linking Models and Datasets on the Hub
154
155
155
-
You can showcase all the models and datasets that your Space links to by adding their identifier in your Space's README metadata. To do so, you can define them under the `models` and `datasets` keys. In addition to listing the artefacts in the README file, you can also record them in any `.py`, `.ini` or `.html` file as well. We'll parse it auto-magically!
156
+
You can showcase all the models and datasets that your Space links to by adding their identifier in your Space's README metadata. To do so, you can define them under the `models` and `datasets` keys. In addition to listing the artefacts in the README file, you can also record them in any `.py`, `.ini` or `.html` file as well. We'll parse it auto-magically!
156
157
157
158
Here's an example linking two models from a space:
0 commit comments