Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,8 @@ def get_trending_repos(num: int = 10) -> dict:
|
|
| 68 |
return {"trending": cached_trending[:num]}
|
| 69 |
|
| 70 |
#app.mount("/mcp", mcp_server.streamable_http_app())
|
| 71 |
-
app.mount("/mcp", mcp_server.http_app())
|
|
|
|
| 72 |
|
| 73 |
async def trending_generator():
|
| 74 |
while True:
|
|
@@ -83,6 +84,7 @@ async def get_trending():
|
|
| 83 |
await fetch_github_trending()
|
| 84 |
return {"trending": cached_trending, "last_updated": last_updated.isoformat() if last_updated else None}
|
| 85 |
|
|
|
|
| 86 |
@app.get("/trending-sse")
|
| 87 |
async def get_trending_sse():
|
| 88 |
return StreamingResponse(
|
|
|
|
| 68 |
return {"trending": cached_trending[:num]}
|
| 69 |
|
| 70 |
#app.mount("/mcp", mcp_server.streamable_http_app())
|
| 71 |
+
#app.mount("/mcp", mcp_server.http_app())
|
| 72 |
+
app.mount("/", mcp_server.http_app())
|
| 73 |
|
| 74 |
async def trending_generator():
|
| 75 |
while True:
|
|
|
|
| 84 |
await fetch_github_trending()
|
| 85 |
return {"trending": cached_trending, "last_updated": last_updated.isoformat() if last_updated else None}
|
| 86 |
|
| 87 |
+
|
| 88 |
@app.get("/trending-sse")
|
| 89 |
async def get_trending_sse():
|
| 90 |
return StreamingResponse(
|