Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,5 @@
|
|
| 1 |
from fastapi import FastAPI, UploadFile, File, Form
|
| 2 |
from fastapi_mcp import FastApiMCP
|
| 3 |
-
from langchain_community.document_loaders.generic import GenericLoader
|
| 4 |
-
from langchain_community.document_loaders.parsers import LanguageParser
|
| 5 |
-
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
| 6 |
-
from langchain_community.vectorstores import Chroma
|
| 7 |
-
from langchain_community.embeddings import HuggingFaceEmbeddings
|
| 8 |
-
from pydantic import BaseModel
|
| 9 |
-
from typing import List
|
| 10 |
|
| 11 |
app = FastAPI(title="test fastapi mcp")
|
| 12 |
|
|
@@ -24,9 +17,8 @@ async def root():
|
|
| 24 |
# Initialize MCP server
|
| 25 |
mcp = FastApiMCP(
|
| 26 |
app,
|
| 27 |
-
name="
|
| 28 |
-
description="
|
| 29 |
-
base_url="http://localhost:8000"
|
| 30 |
)
|
| 31 |
mcp.mount()
|
| 32 |
|
|
|
|
| 1 |
from fastapi import FastAPI, UploadFile, File, Form
|
| 2 |
from fastapi_mcp import FastApiMCP
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
app = FastAPI(title="test fastapi mcp")
|
| 5 |
|
|
|
|
| 17 |
# Initialize MCP server
|
| 18 |
mcp = FastApiMCP(
|
| 19 |
app,
|
| 20 |
+
name="FAST API MCP ",
|
| 21 |
+
description="FAST API MCP Intergration test in hf",
|
|
|
|
| 22 |
)
|
| 23 |
mcp.mount()
|
| 24 |
|