Fred808 commited on
Commit
af14a63
·
verified ·
1 Parent(s): 262e8ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -364,8 +364,8 @@ async def chatbot_response(request: Request, background_tasks: BackgroundTasks):
364
  elif sentiment_score > 0.3:
365
  sentiment_modifier = "Great to hear from you! "
366
 
367
- # Check if this is an order flow request
368
- order_response = process_order_flow(user_id, user_message)
369
  if order_response:
370
  background_tasks.add_task(log_chat_to_db, user_id, "outbound", order_response)
371
  return JSONResponse(content={"response": sentiment_modifier + order_response})
 
364
  elif sentiment_score > 0.3:
365
  sentiment_modifier = "Great to hear from you! "
366
 
367
+ # Check if this is an order flow request
368
+ order_response = process_order_flow(user_id, user_message)
369
  if order_response:
370
  background_tasks.add_task(log_chat_to_db, user_id, "outbound", order_response)
371
  return JSONResponse(content={"response": sentiment_modifier + order_response})