mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-10 15:33:11 +00:00
fix some stuff (#12292)
Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
12
libs/cli/langchain_cli/project_template/app/server.py
Normal file
12
libs/cli/langchain_cli/project_template/app/server.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
Reference in New Issue
Block a user