pvanand commited on
Commit
81ff99a
·
verified ·
1 Parent(s): 5a63667

Update presentation_api.py

Browse files
Files changed (1) hide show
  1. presentation_api.py +3 -3
presentation_api.py CHANGED
@@ -13,6 +13,8 @@ import json
13
  from sse_starlette.sse import EventSourceResponse
14
  from datetime import datetime
15
  from fastapi import APIRouter
 
 
16
 
17
  router = APIRouter(
18
  prefix="/presentation",
@@ -122,9 +124,7 @@ async def chat(input_data: ChatInput):
122
  media_type="text/event-stream"
123
  )
124
 
125
- @app.get("/health")
126
  async def health_check():
127
  return {"status": "healthy"}
128
 
129
- if __name__ == "__main__":
130
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
13
  from sse_starlette.sse import EventSourceResponse
14
  from datetime import datetime
15
  from fastapi import APIRouter
16
+ from langchain_core.runnables import RunnableConfig
17
+ from langchain_core.prompts import ChatPromptTemplate
18
 
19
  router = APIRouter(
20
  prefix="/presentation",
 
124
  media_type="text/event-stream"
125
  )
126
 
127
+ @router.get("/health")
128
  async def health_check():
129
  return {"status": "healthy"}
130