Files
langchain/libs/cli/project_template/app/server.py
Erick Friis 47070b8314 CLI (#12284)
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-10-25 11:06:58 -07:00

13 lines
252 B
Python

from fastapi import FastAPI
from langserve import add_routes
app = FastAPI()
# Edit this to add the chain you want to add
add_routes(app, NotImplemented)
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8001)