victor HF Staff commited on
Commit
bf5b72e
·
1 Parent(s): eea0a4b

Fix MCP button to use direct URL instead of JavaScript for HuggingFace Spaces compatibility

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -215,7 +215,7 @@ with gr.Blocks(title="Web Search MCP Server") as demo:
215
  gr.HTML(
216
  """
217
  <div style="margin-bottom: 24px;">
218
- <a href="#" onclick="window.location.href = window.location.pathname + '?view=api'; return false;">
219
  <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/use-with-mcp-lg-dark.svg"
220
  alt="Use with MCP"
221
  style="height: 36px;">
 
215
  gr.HTML(
216
  """
217
  <div style="margin-bottom: 24px;">
218
+ <a href="https://huggingface.co/spaces/victor/websearch?view=api" target="_blank" rel="noopener">
219
  <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/use-with-mcp-lg-dark.svg"
220
  alt="Use with MCP"
221
  style="height: 36px;">