Wauplin HF staff commited on
Commit
a7bfafd
β€’
1 Parent(s): 9c5d5e0

quickstart

Browse files
Files changed (1) hide show
  1. README.md +40 -1
README.md CHANGED
@@ -35,11 +35,50 @@ space_ci:
35
  # Defaults to no storage (free).
36
  ---
37
 
38
- # Configure a CI for your Spaces πŸš€
39
 
40
  **Gradio Space CI** is a plugin (and package) to create ephemeral Spaces for each PR opened on your Space repo.
41
  The goal is to foster community contributions by making the review process as lean as possible.
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  ## Key features
44
 
45
  1. **Listen to Pull Requests**.
 
35
  # Defaults to no storage (free).
36
  ---
37
 
38
+ # Listen to Pull Requests and start ephemeral Spaces on new PRs! πŸš€
39
 
40
  **Gradio Space CI** is a plugin (and package) to create ephemeral Spaces for each PR opened on your Space repo.
41
  The goal is to foster community contributions by making the review process as lean as possible.
42
 
43
+ ## Quick start
44
+
45
+ Configure *Gradio Space CI* in just 4 steps!
46
+
47
+ 1. Update your requirements.
48
+
49
+ ```bash
50
+ # requirements.txt
51
+ gradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/gradio-space-ci@0.2.0
52
+ ```
53
+
54
+ 2. Set `HF_TOKEN` as a Space secret.
55
+ 3. Configure CI in your `README.md`.
56
+
57
+ ```yaml
58
+ # README.md
59
+ title: ...
60
+ emoji: ...
61
+ sdk: gradio
62
+ space_ci:
63
+ trusted_authors:
64
+ - clefourrier
65
+ secrets:
66
+ - HF_TOKEN
67
+ hardware: cpu-basic
68
+ storage: null
69
+ ```
70
+
71
+ 4. Enable CI in `app.py`.
72
+
73
+ ```py
74
+ # app.py
75
+ from gradio_space_ci import enable_space_ci
76
+
77
+ enable_space_ci()
78
+ ```
79
+
80
+ And that's it! For more details, check out the [integration](#integration) section.
81
+
82
  ## Key features
83
 
84
  1. **Listen to Pull Requests**.