MYousafRana commited on
Commit
e2196e2
·
verified ·
1 Parent(s): 8d2ec49

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -0
main.py CHANGED
@@ -144,6 +144,11 @@ TRAVEL PLAN:
144
  return structured_package
145
 
146
 
 
 
 
 
 
147
  @app.post("/chat", summary="Answer user questions about the generated travel plan")
148
  async def chat_about_plan(chat_input: ChatRequest):
149
  plan_text = chat_input.plan_text
 
144
  return structured_package
145
 
146
 
147
+ class ChatRequest(BaseModel):
148
+ plan_text: str
149
+ user_query: str
150
+
151
+
152
  @app.post("/chat", summary="Answer user questions about the generated travel plan")
153
  async def chat_about_plan(chat_input: ChatRequest):
154
  plan_text = chat_input.plan_text