Spaces:
Running
Running
milwright
commited on
Commit
·
4734506
1
Parent(s):
483d334
fix: reorganize step 3 images to show settings and new secret steps clearly
Browse files- support_docs.py +31 -34
support_docs.py
CHANGED
|
@@ -176,9 +176,38 @@ def create_support_docs():
|
|
| 176 |
with gr.Accordion("Step 3: Configure API Secrets", open=False):
|
| 177 |
gr.Markdown("""
|
| 178 |
**3.1 Configure HuggingFace Spaces Secrets**
|
| 179 |
-
- Go to Settings → Variables and secrets
|
| 180 |
-
- Click "New secret"
|
| 181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
**Required Secret:**
|
| 183 |
- **API_KEY** (or your configured variable name)
|
| 184 |
- Get from: https://openrouter.ai/keys
|
|
@@ -200,38 +229,6 @@ def create_support_docs():
|
|
| 200 |
- To disable access control, delete the `SPACE_ACCESS_CODE` secret entirely
|
| 201 |
- Do NOT set an empty value - either set a code or don't create the secret at all
|
| 202 |
""")
|
| 203 |
-
|
| 204 |
-
with gr.Row():
|
| 205 |
-
|
| 206 |
-
with gr.Column(scale=1):
|
| 207 |
-
gr.Image(
|
| 208 |
-
value="img/img4.png",
|
| 209 |
-
label="Navigating to Settings",
|
| 210 |
-
show_label=True,
|
| 211 |
-
interactive=False,
|
| 212 |
-
width=400,
|
| 213 |
-
container=False
|
| 214 |
-
)
|
| 215 |
-
|
| 216 |
-
with gr.Column(scale=1):
|
| 217 |
-
gr.Image(
|
| 218 |
-
value="img/img4.png",
|
| 219 |
-
label="Settings Variables and Secrets",
|
| 220 |
-
show_label=True,
|
| 221 |
-
interactive=False,
|
| 222 |
-
width=400,
|
| 223 |
-
container=False
|
| 224 |
-
)
|
| 225 |
-
|
| 226 |
-
with gr.Column(scale=1):
|
| 227 |
-
gr.Image(
|
| 228 |
-
value="img/img3.png",
|
| 229 |
-
label="API Key Secret Configuration",
|
| 230 |
-
show_label=True,
|
| 231 |
-
interactive=False,
|
| 232 |
-
width=400,
|
| 233 |
-
container=False
|
| 234 |
-
)
|
| 235 |
|
| 236 |
with gr.Accordion("Step 4: Monitor Build & Verify Configuration", open=False):
|
| 237 |
gr.Markdown("""
|
|
|
|
| 176 |
with gr.Accordion("Step 3: Configure API Secrets", open=False):
|
| 177 |
gr.Markdown("""
|
| 178 |
**3.1 Configure HuggingFace Spaces Secrets**
|
|
|
|
|
|
|
| 179 |
|
| 180 |
+
**Step 1: Go to Settings**
|
| 181 |
+
- Navigate to your Space's Settings tab
|
| 182 |
+
""")
|
| 183 |
+
|
| 184 |
+
# Image for Settings navigation
|
| 185 |
+
gr.Image(
|
| 186 |
+
value="img/img4.png",
|
| 187 |
+
label="Go to Settings",
|
| 188 |
+
show_label=True,
|
| 189 |
+
interactive=False,
|
| 190 |
+
width=600,
|
| 191 |
+
container=True
|
| 192 |
+
)
|
| 193 |
+
|
| 194 |
+
gr.Markdown("""
|
| 195 |
+
**Step 2: Click "New secret"**
|
| 196 |
+
- In the Variables and secrets section
|
| 197 |
+
- Click the "New secret" button
|
| 198 |
+
""")
|
| 199 |
+
|
| 200 |
+
# Image for New secret button
|
| 201 |
+
gr.Image(
|
| 202 |
+
value="img/img3.png",
|
| 203 |
+
label="Click New Secret",
|
| 204 |
+
show_label=True,
|
| 205 |
+
interactive=False,
|
| 206 |
+
width=600,
|
| 207 |
+
container=True
|
| 208 |
+
)
|
| 209 |
+
|
| 210 |
+
gr.Markdown("""
|
| 211 |
**Required Secret:**
|
| 212 |
- **API_KEY** (or your configured variable name)
|
| 213 |
- Get from: https://openrouter.ai/keys
|
|
|
|
| 229 |
- To disable access control, delete the `SPACE_ACCESS_CODE` secret entirely
|
| 230 |
- Do NOT set an empty value - either set a code or don't create the secret at all
|
| 231 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 232 |
|
| 233 |
with gr.Accordion("Step 4: Monitor Build & Verify Configuration", open=False):
|
| 234 |
gr.Markdown("""
|