Gideon commited on
Commit
85f62fa
·
1 Parent(s): 3a9fd79

Update VoiceKit: fix MCP endpoint URL and demo card titles

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -5,7 +5,7 @@ VoiceKit - MCP Server for Voice Analysis
5
  - Embedding extraction, voice comparison, acoustic analysis
6
  - Speech-to-text, voice isolation, similarity analysis
7
 
8
- MCP Endpoint: https://MCP-1st-Birthday-voicekit-test.hf.space/gradio_api/mcp/sse
9
  """
10
 
11
  import gradio as gr
@@ -2023,7 +2023,7 @@ with gr.Blocks() as demo:
2023
  <div class="code-line"> <span class="json-key">"args"</span><span class="json-colon">:</span> <span class="json-bracket">[</span></div>
2024
  <div class="code-line"> <span class="json-string">"-y"</span><span class="json-comma">,</span></div>
2025
  <div class="code-line"> <span class="json-string">"mcp-remote"</span><span class="json-comma">,</span></div>
2026
- <div class="code-line"> <span class="json-string">"https://mcp-1st-birthday-voicekit-test.hf.space/gradio_api/mcp/sse"</span></div>
2027
  <div class="code-line"> <span class="json-bracket">]</span></div>
2028
  <div class="code-line"> <span class="json-bracket">}</span></div>
2029
  <div class="code-line"> <span class="json-bracket">}</span></div>
@@ -2032,7 +2032,7 @@ with gr.Blocks() as demo:
2032
  </div>
2033
  </div>
2034
 
2035
- <button class="copy-button" onclick="navigator.clipboard.writeText(JSON.stringify({mcpServers:{voicekit:{command:'npx',args:['-y','mcp-remote','https://mcp-1st-birthday-voicekit-test.hf.space/gradio_api/mcp/sse']}}},null,2))">
2036
  <svg width="16" height="16" viewBox="0 0 24 24" fill="white" style="display: inline-block; vertical-align: middle;">
2037
  <rect x="9" y="9" width="13" height="13" rx="2" ry="2" fill="white"/>
2038
  <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" fill="none" stroke="white" stroke-width="2"/>
@@ -2233,7 +2233,7 @@ with gr.Blocks() as demo:
2233
  <path d="M14 12L12.5 13.5" stroke="#7c3aed" stroke-width="2" stroke-linecap="round"/>
2234
  </svg>
2235
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2236
- COMPARE VOICES
2237
  </div>
2238
  </div>
2239
  """)
@@ -2272,7 +2272,7 @@ with gr.Blocks() as demo:
2272
  </g>
2273
  </svg>
2274
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2275
- ACOUSTIC ANALYSIS
2276
  </div>
2277
  </div>
2278
  """)
@@ -2305,7 +2305,7 @@ with gr.Blocks() as demo:
2305
  <path d="M19 17H22" stroke="#7c3aed" stroke-width="2" stroke-linecap="round"/>
2306
  </svg>
2307
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2308
- AUDIO TRANSCRIPTION
2309
  </div>
2310
  </div>
2311
  """)
@@ -2337,7 +2337,7 @@ with gr.Blocks() as demo:
2337
  <path d="M19 4H21V20H19" stroke="#7c3aed" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2338
  </svg>
2339
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2340
- CLEAN AUDIO EXTRACTION
2341
  </div>
2342
  </div>
2343
  """)
@@ -2374,7 +2374,7 @@ with gr.Blocks() as demo:
2374
  <circle cx="6" cy="9" r="1.5" fill="#7c3aed"/>
2375
  </svg>
2376
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2377
- VOICE SIMILARITY
2378
  </div>
2379
  </div>
2380
  """)
 
5
  - Embedding extraction, voice comparison, acoustic analysis
6
  - Speech-to-text, voice isolation, similarity analysis
7
 
8
+ MCP Endpoint: https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/sse
9
  """
10
 
11
  import gradio as gr
 
2023
  <div class="code-line"> <span class="json-key">"args"</span><span class="json-colon">:</span> <span class="json-bracket">[</span></div>
2024
  <div class="code-line"> <span class="json-string">"-y"</span><span class="json-comma">,</span></div>
2025
  <div class="code-line"> <span class="json-string">"mcp-remote"</span><span class="json-comma">,</span></div>
2026
+ <div class="code-line"> <span class="json-string">"https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/sse"</span></div>
2027
  <div class="code-line"> <span class="json-bracket">]</span></div>
2028
  <div class="code-line"> <span class="json-bracket">}</span></div>
2029
  <div class="code-line"> <span class="json-bracket">}</span></div>
 
2032
  </div>
2033
  </div>
2034
 
2035
+ <button class="copy-button" onclick="navigator.clipboard.writeText(JSON.stringify({mcpServers:{voicekit:{command:'npx',args:['-y','mcp-remote','https://mcp-1st-birthday-voicekit.hf.space/gradio_api/mcp/sse']}}},null,2))">
2036
  <svg width="16" height="16" viewBox="0 0 24 24" fill="white" style="display: inline-block; vertical-align: middle;">
2037
  <rect x="9" y="9" width="13" height="13" rx="2" ry="2" fill="white"/>
2038
  <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" fill="none" stroke="white" stroke-width="2"/>
 
2233
  <path d="M14 12L12.5 13.5" stroke="#7c3aed" stroke-width="2" stroke-linecap="round"/>
2234
  </svg>
2235
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2236
+ MATCH VOICE
2237
  </div>
2238
  </div>
2239
  """)
 
2272
  </g>
2273
  </svg>
2274
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2275
+ ANALYZE ACOUSTICS
2276
  </div>
2277
  </div>
2278
  """)
 
2305
  <path d="M19 17H22" stroke="#7c3aed" stroke-width="2" stroke-linecap="round"/>
2306
  </svg>
2307
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2308
+ TRANSCRIBE AUDIO
2309
  </div>
2310
  </div>
2311
  """)
 
2337
  <path d="M19 4H21V20H19" stroke="#7c3aed" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2338
  </svg>
2339
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2340
+ ISOLATE VOICE
2341
  </div>
2342
  </div>
2343
  """)
 
2374
  <circle cx="6" cy="9" r="1.5" fill="#7c3aed"/>
2375
  </svg>
2376
  <div style="font-size: 16px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 1px;">
2377
+ GRADE VOICE
2378
  </div>
2379
  </div>
2380
  """)