Spaces:
Running
Running
Update main.py
Browse files
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
|