Spaces:
Running
Running
Commit ·
a3611db
1
Parent(s): 799af78
Move 'Use with AI agents' disclaimer above the code block
Browse files- index.html +6 -4
index.html
CHANGED
|
@@ -1381,6 +1381,9 @@ pre {
|
|
| 1381 |
<option value="transcribe">Transcribe — Cohere</option>
|
| 1382 |
</select>
|
| 1383 |
</div>
|
|
|
|
|
|
|
|
|
|
| 1384 |
<div class="api-tabs" id="api-main-tabs">
|
| 1385 |
<button class="api-tab active" type="button" data-lang="javascript" onclick="showApiLang('javascript', this)">JavaScript</button>
|
| 1386 |
<button class="api-tab" type="button" data-lang="python" onclick="showApiLang('python', this)">Python</button>
|
|
@@ -1390,10 +1393,6 @@ pre {
|
|
| 1390 |
<button class="copy-btn" onclick="copyCode(this)"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg> Copy</button>
|
| 1391 |
<pre><code id="api-code"></code></pre>
|
| 1392 |
</div>
|
| 1393 |
-
|
| 1394 |
-
<div class="agent-tip">
|
| 1395 |
-
<strong>Use with AI agents</strong> — These API calls work great with Claude Code, Cursor, Windsurf, or any AI coding agent. Paste a snippet into your agent's context and ask it to call the feature. The agent can use your <code style="background:var(--surface2);padding:1px 4px;border-radius:3px;font-size:12px">HF_TOKEN</code> environment variable to authenticate. Works with MCP servers, automation scripts, and CI/CD pipelines too.
|
| 1396 |
-
</div>
|
| 1397 |
</div>
|
| 1398 |
|
| 1399 |
<div class="footer">Powered by <a href="https://huggingface.co/spaces/k2-fsa/OmniVoice" target="_blank">OmniVoice</a>, <a href="https://huggingface.co/spaces/Qwen/Qwen3-TTS" target="_blank">Qwen3-TTS</a>, <a href="https://huggingface.co/spaces/Plachta/Seed-VC" target="_blank">Seed-VC</a>, <a href="https://huggingface.co/spaces/multimodalart/resemble-enhance-zerogpu" target="_blank">Resemble Enhance</a>, <a href="https://huggingface.co/spaces/stabilityai/stable-audio-3" target="_blank">Stable Audio 3</a> & <a href="https://huggingface.co/spaces/CohereLabs/cohere-transcribe-03-2026" target="_blank">Cohere Transcribe</a></div>
|
|
@@ -2726,6 +2725,9 @@ renderApiCode();
|
|
| 2726 |
// ── Per-page inline API panels ──
|
| 2727 |
|
| 2728 |
const API_PANEL_TABS_HTML = `
|
|
|
|
|
|
|
|
|
|
| 2729 |
<div class="api-tabs">
|
| 2730 |
<button class="api-tab" type="button" data-lang="javascript" onclick="showInlineApiLang('javascript', this)">JavaScript</button>
|
| 2731 |
<button class="api-tab" type="button" data-lang="python" onclick="showInlineApiLang('python', this)">Python</button>
|
|
|
|
| 1381 |
<option value="transcribe">Transcribe — Cohere</option>
|
| 1382 |
</select>
|
| 1383 |
</div>
|
| 1384 |
+
<div class="agent-tip">
|
| 1385 |
+
<strong>Use with AI agents</strong> — These API calls work great with Claude Code, Cursor, Windsurf, or any AI coding agent. Paste a snippet into your agent's context and ask it to call the feature. The agent can use your <code style="background:var(--surface2);padding:1px 4px;border-radius:3px;font-size:12px">HF_TOKEN</code> environment variable to authenticate. Works with MCP servers, automation scripts, and CI/CD pipelines too.
|
| 1386 |
+
</div>
|
| 1387 |
<div class="api-tabs" id="api-main-tabs">
|
| 1388 |
<button class="api-tab active" type="button" data-lang="javascript" onclick="showApiLang('javascript', this)">JavaScript</button>
|
| 1389 |
<button class="api-tab" type="button" data-lang="python" onclick="showApiLang('python', this)">Python</button>
|
|
|
|
| 1393 |
<button class="copy-btn" onclick="copyCode(this)"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg> Copy</button>
|
| 1394 |
<pre><code id="api-code"></code></pre>
|
| 1395 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1396 |
</div>
|
| 1397 |
|
| 1398 |
<div class="footer">Powered by <a href="https://huggingface.co/spaces/k2-fsa/OmniVoice" target="_blank">OmniVoice</a>, <a href="https://huggingface.co/spaces/Qwen/Qwen3-TTS" target="_blank">Qwen3-TTS</a>, <a href="https://huggingface.co/spaces/Plachta/Seed-VC" target="_blank">Seed-VC</a>, <a href="https://huggingface.co/spaces/multimodalart/resemble-enhance-zerogpu" target="_blank">Resemble Enhance</a>, <a href="https://huggingface.co/spaces/stabilityai/stable-audio-3" target="_blank">Stable Audio 3</a> & <a href="https://huggingface.co/spaces/CohereLabs/cohere-transcribe-03-2026" target="_blank">Cohere Transcribe</a></div>
|
|
|
|
| 2725 |
// ── Per-page inline API panels ──
|
| 2726 |
|
| 2727 |
const API_PANEL_TABS_HTML = `
|
| 2728 |
+
<div class="agent-tip" style="margin-bottom:12px">
|
| 2729 |
+
<strong>Use with AI agents</strong> — Paste this snippet into Claude Code, Cursor, Windsurf, or any AI agent. The agent can use your <code style="background:var(--surface2);padding:1px 4px;border-radius:3px;font-size:12px">HF_TOKEN</code> environment variable to authenticate.
|
| 2730 |
+
</div>
|
| 2731 |
<div class="api-tabs">
|
| 2732 |
<button class="api-tab" type="button" data-lang="javascript" onclick="showInlineApiLang('javascript', this)">JavaScript</button>
|
| 2733 |
<button class="api-tab" type="button" data-lang="python" onclick="showInlineApiLang('python', this)">Python</button>
|