Spaces:
Build error
Build error
better
Browse files- README.md +2 -2
- open_pr.py +1 -1
- src/gradio_space_ci/__init__.py +1 -1
README.md
CHANGED
|
@@ -51,7 +51,7 @@ The goal is to improve developer experience by making the review process as lean
|
|
| 51 |
|
| 52 |
```py
|
| 53 |
# requirements.txt
|
| 54 |
-
gradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/[email protected].
|
| 55 |
```
|
| 56 |
|
| 57 |
2. Set `HF_TOKEN` as a Space secret.
|
|
@@ -110,7 +110,7 @@ Add the following line to it:
|
|
| 110 |
|
| 111 |
```bash
|
| 112 |
# requirements.txt
|
| 113 |
-
gradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/[email protected].
|
| 114 |
```
|
| 115 |
|
| 116 |
### 2. Add a user token as `HF_TOKEN` secret
|
|
|
|
| 51 |
|
| 52 |
```py
|
| 53 |
# requirements.txt
|
| 54 |
+
gradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/[email protected].2
|
| 55 |
```
|
| 56 |
|
| 57 |
2. Set `HF_TOKEN` as a Space secret.
|
|
|
|
| 110 |
|
| 111 |
```bash
|
| 112 |
# requirements.txt
|
| 113 |
+
gradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/[email protected].2
|
| 114 |
```
|
| 115 |
|
| 116 |
### 2. Add a user token as `HF_TOKEN` secret
|
open_pr.py
CHANGED
|
@@ -61,7 +61,7 @@ def open_pr(space_id_or_url: str, oauth_token: gr.OAuthToken | None) -> str:
|
|
| 61 |
else:
|
| 62 |
requirements = ""
|
| 63 |
if "gradio-space-ci" not in requirements:
|
| 64 |
-
requirements += "\ngradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/[email protected].
|
| 65 |
|
| 66 |
# 2. Configure CI in README.md
|
| 67 |
card = SpaceCard.load(api.hf_hub_download(repo_id=space_id, repo_type="space", filename="README.md"))
|
|
|
|
| 61 |
else:
|
| 62 |
requirements = ""
|
| 63 |
if "gradio-space-ci" not in requirements:
|
| 64 |
+
requirements += "\ngradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/[email protected].2\n"
|
| 65 |
|
| 66 |
# 2. Configure CI in README.md
|
| 67 |
card = SpaceCard.load(api.hf_hub_download(repo_id=space_id, repo_type="space", filename="README.md"))
|
src/gradio_space_ci/__init__.py
CHANGED
|
@@ -38,4 +38,4 @@ else:
|
|
| 38 |
from .webhook import enable_space_ci # noqa: F401
|
| 39 |
|
| 40 |
|
| 41 |
-
__version__ = "0.2.
|
|
|
|
| 38 |
from .webhook import enable_space_ci # noqa: F401
|
| 39 |
|
| 40 |
|
| 41 |
+
__version__ = "0.2.2"
|