SexBot / api.py
Pew404's picture
Upload folder using huggingface_hub
318db6e verified
raw
history blame contribute delete
612 Bytes
from fastapi import FastAPI
from routers.sql_chat import sql_chat_router, chat_store_manager, roleplay_router
from dotenv import load_dotenv
import uvicorn, os
BASE=os.path.dirname(os.path.abspath(__file__))
load_dotenv()
app = FastAPI(
title="chat",
description="chatbot",
)
app.include_router(sql_chat_router)
app.include_router(chat_store_manager)
app.include_router(roleplay_router)
if __name__ == "__main__":
uvicorn.run(
"api:app",
host="0.0.0.0",
port=8000,
loop="asyncio",
workers=8,
timeout_keep_alive=60,
access_log=True
)