Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
IPMentor Chatbot Demo - Hugging Face Space Client
|
3 |
|
4 |
This is a demo MCP client that connects to the IPMentor Space at
|
5 |
-
https://
|
6 |
assistance using the Model Context Protocol (MCP).
|
7 |
|
8 |
Powered by Mistral Small 3.1 24B Instruct model.
|
@@ -32,7 +32,7 @@ load_dotenv()
|
|
32 |
SHOW_TOOLS = True # True: shows tool details, False: only typing and response
|
33 |
|
34 |
# Fixed MCP server URL for the demo
|
35 |
-
DEMO_MCP_SERVER_URL = "https://
|
36 |
|
37 |
def load_system_prompt():
|
38 |
"""Load the system prompt from an external .md file."""
|
@@ -593,14 +593,14 @@ async def bot(history):
|
|
593 |
def gradio_interface():
|
594 |
with gr.Blocks(title="IPMentor Chatbot Demo") as demo:
|
595 |
# Header with logo
|
596 |
-
gr.Image("https://huggingface.co/spaces/
|
597 |
|
598 |
# Description
|
599 |
gr.Markdown("""
|
600 |
**IPMentor Chatbot Demo** - MCP Client Example
|
601 |
|
602 |
This is a demo MCP (Model Context Protocol) client that connects to the **IPMentor Space** at
|
603 |
-
[https://
|
604 |
IPv4 networking assistance.
|
605 |
|
606 |
**Features:**
|
|
|
2 |
IPMentor Chatbot Demo - Hugging Face Space Client
|
3 |
|
4 |
This is a demo MCP client that connects to the IPMentor Space at
|
5 |
+
https://agents-mcp-hackathon-ipmentor.hf.space to showcase conversational IPv4 networking
|
6 |
assistance using the Model Context Protocol (MCP).
|
7 |
|
8 |
Powered by Mistral Small 3.1 24B Instruct model.
|
|
|
32 |
SHOW_TOOLS = True # True: shows tool details, False: only typing and response
|
33 |
|
34 |
# Fixed MCP server URL for the demo
|
35 |
+
DEMO_MCP_SERVER_URL = "https://agents-mcp-hackathon-ipmentor.hf.space/gradio_api/mcp/sse"
|
36 |
|
37 |
def load_system_prompt():
|
38 |
"""Load the system prompt from an external .md file."""
|
|
|
593 |
def gradio_interface():
|
594 |
with gr.Blocks(title="IPMentor Chatbot Demo") as demo:
|
595 |
# Header with logo
|
596 |
+
gr.Image("https://huggingface.co/spaces/Agents-MCP-Hackathon/ipmentor/resolve/main/assets/header.png", show_label=False, interactive=False, container=False, height=120)
|
597 |
|
598 |
# Description
|
599 |
gr.Markdown("""
|
600 |
**IPMentor Chatbot Demo** - MCP Client Example
|
601 |
|
602 |
This is a demo MCP (Model Context Protocol) client that connects to the **IPMentor Space** at
|
603 |
+
[https://agents-mcp-hackathon-ipmentor.hf.space](https://agents-mcp-hackathon-ipmentor.hf.space) to showcase conversational
|
604 |
IPv4 networking assistance.
|
605 |
|
606 |
**Features:**
|