Soumik555 commited on
Commit
ace75e8
·
1 Parent(s): 48e6960

added gemini too

Browse files
Files changed (1) hide show
  1. controller.py +0 -2
controller.py CHANGED
@@ -302,7 +302,6 @@ async def csv_chat(request: Dict, authorization: str = Header(None)):
302
  decoded_url = unquote(csv_url)
303
  detailed_answer = request.get("detailed_answer")
304
  conversation_history = request.get("conversation_history", [])
305
- return {"answer": jsonable_encoder(conversation_history)}
306
 
307
  if if_initial_chat_question(query):
308
  answer = await asyncio.to_thread(
@@ -801,7 +800,6 @@ async def csv_chart(request: dict, authorization: str = Header(None)):
801
  csv_url = unquote(request.get("csv_url", ""))
802
  detailed_answer = request.get("detailed_answer", False)
803
  conversation_history = request.get("conversation_history", [])
804
- return {"orchestrator_response": jsonable_encoder(conversation_history)}
805
 
806
  loop = asyncio.get_running_loop()
807
  # First, try the langchain-based method if the question qualifies
 
302
  decoded_url = unquote(csv_url)
303
  detailed_answer = request.get("detailed_answer")
304
  conversation_history = request.get("conversation_history", [])
 
305
 
306
  if if_initial_chat_question(query):
307
  answer = await asyncio.to_thread(
 
800
  csv_url = unquote(request.get("csv_url", ""))
801
  detailed_answer = request.get("detailed_answer", False)
802
  conversation_history = request.get("conversation_history", [])
 
803
 
804
  loop = asyncio.get_running_loop()
805
  # First, try the langchain-based method if the question qualifies