mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-24 05:50:18 +00:00
13 lines
264 B
Python
13 lines
264 B
Python
from fastapi import FastAPI
|
|
from langserve import add_routes
|
|
|
|
app = FastAPI(docs_url="/")
|
|
|
|
# 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=8000)
|