File size: 532 Bytes
6e1a53e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import uvicorn
from dotenv import load_dotenv
from fastapi import FastAPI

from routes import api
from routes.admin import chat_history, data_sources, vector_stores

load_dotenv(".env")

app = FastAPI(title="Embedchain API")

app.include_router(api.router)
app.include_router(data_sources.router)
app.include_router(chat_history.router)
app.include_router(vector_stores.router)

if __name__ == "__main__":
    uvicorn.run("main:app", host="0.0.0.0", port=8000, log_level="info",
                reload=True, timeout_keep_alive=600)