victor HF Staff commited on
Commit
f0981f5
·
1 Parent(s): eaf41af

Simplify MCP button styling

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -211,15 +211,11 @@ with gr.Blocks(title="Web Search MCP Server") as demo:
211
  also test it manually below.
212
  """
213
  )
214
-
215
  gr.HTML(
216
  """
217
- <div style="margin: 16px 0;">
218
- <a href="#"
219
- onclick="window.location.href = window.location.pathname + '?view=api'; return false;"
220
- style="display: inline-block; padding: 10px 20px; background-color: #1a1a2e; color: white; text-decoration: none; border-radius: 6px; font-weight: 500; border: 1px solid #333; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.2); cursor: pointer;"
221
- onmouseover="this.style.backgroundColor='#16213e'; this.style.boxShadow='0 4px 8px rgba(0,0,0,0.3)';"
222
- onmouseout="this.style.backgroundColor='#1a1a2e'; this.style.boxShadow='0 2px 4px rgba(0,0,0,0.2)';">
223
  <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/use-with-mcp-lg-dark.svg"
224
  alt="Use with MCP"
225
  style="height: 20px; vertical-align: middle;">
 
211
  also test it manually below.
212
  """
213
  )
214
+
215
  gr.HTML(
216
  """
217
+ <div>
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: 20px; vertical-align: middle;">