Spaces:
Running
Running
Commit
·
4d4fa56
1
Parent(s):
a6ff259
Fix conflict in API
Browse files- api/main.py +2 -2
api/main.py
CHANGED
|
@@ -2,7 +2,7 @@ import logging
|
|
| 2 |
from fastapi import FastAPI, HTTPException
|
| 3 |
from contextlib import asynccontextmanager
|
| 4 |
from fastapi.middleware.cors import CORSMiddleware
|
| 5 |
-
|
| 6 |
from api.schemas import ChatRequest, ChatResponse, UploadResponse
|
| 7 |
from core.rag_pipeline import RagPipeline
|
| 8 |
|
|
@@ -44,7 +44,7 @@ app.add_middleware(
|
|
| 44 |
|
| 45 |
@app.get("/")
|
| 46 |
async def read_index():
|
| 47 |
-
return
|
| 48 |
|
| 49 |
@app.post("/chat", response_model=ChatResponse)
|
| 50 |
async def chat(request: ChatRequest):
|
|
|
|
| 2 |
from fastapi import FastAPI, HTTPException
|
| 3 |
from contextlib import asynccontextmanager
|
| 4 |
from fastapi.middleware.cors import CORSMiddleware
|
| 5 |
+
|
| 6 |
from api.schemas import ChatRequest, ChatResponse, UploadResponse
|
| 7 |
from core.rag_pipeline import RagPipeline
|
| 8 |
|
|
|
|
| 44 |
|
| 45 |
@app.get("/")
|
| 46 |
async def read_index():
|
| 47 |
+
return {"status": "online", "message": "CorpGuide AI API is running. Use the Frontend application to interact."}
|
| 48 |
|
| 49 |
@app.post("/chat", response_model=ChatResponse)
|
| 50 |
async def chat(request: ChatRequest):
|