Move MCP button back to HTML block with padding adjustment
Browse files
app.py
CHANGED
@@ -202,14 +202,6 @@ with gr.Blocks(title="Web Search MCP Server") as demo:
|
|
202 |
|
203 |
This MCP server provides web search capabilities to LLMs. It can perform general web searches
|
204 |
or specifically search for fresh news articles, extracting the main content from results.
|
205 |
-
|
206 |
-
<div style="margin: 24px 0;">
|
207 |
-
<a href="#" onclick="window.location.href = window.location.pathname + '?view=api'; return false;">
|
208 |
-
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/use-with-mcp-lg-dark.svg"
|
209 |
-
alt="Use with MCP"
|
210 |
-
style="height: 36px;">
|
211 |
-
</a>
|
212 |
-
</div>
|
213 |
|
214 |
**Search Types:**
|
215 |
- **General Search**: Diverse results from various sources (blogs, docs, articles, etc.)
|
@@ -220,6 +212,19 @@ with gr.Blocks(title="Web Search MCP Server") as demo:
|
|
220 |
"""
|
221 |
)
|
222 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
with gr.Row():
|
224 |
with gr.Column(scale=3):
|
225 |
query_input = gr.Textbox(
|
|
|
202 |
|
203 |
This MCP server provides web search capabilities to LLMs. It can perform general web searches
|
204 |
or specifically search for fresh news articles, extracting the main content from results.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
|
206 |
**Search Types:**
|
207 |
- **General Search**: Diverse results from various sources (blogs, docs, articles, etc.)
|
|
|
212 |
"""
|
213 |
)
|
214 |
|
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;">
|
222 |
+
</a>
|
223 |
+
</div>
|
224 |
+
""",
|
225 |
+
padding=0,
|
226 |
+
)
|
227 |
+
|
228 |
with gr.Row():
|
229 |
with gr.Column(scale=3):
|
230 |
query_input = gr.Textbox(
|