mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
9ce38726a2
Co-authored-by: Erick Friis <erick@langchain.dev>
13 lines
252 B
Python
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)
|