embeding_api / main.py
Arafath10's picture
Update main.py
3a02c2a verified
raw
history blame
414 Bytes
from fastapi import FastAPI, HTTPException
from fastapi.responses import JSONResponse
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
@app.post("/get_n_depth_results")
async def get_n_depth_results(url,input_query):
return "done"