ppsingh commited on
Commit
c1bfe9c
1 Parent(s): 84823f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -121,7 +121,7 @@ async def chat(query,history,sources,reports):
121
 
122
  # create rag chain
123
  chat_model = ChatHuggingFace(llm=llm_qa)
124
- chain = chat_model| StrOutputParser()
125
  # get answers
126
  answer_lst = []
127
  for question, context in zip(question_lst , context_retrieved_lst):
 
121
 
122
  # create rag chain
123
  chat_model = ChatHuggingFace(llm=llm_qa)
124
+ chain = chat_model | StrOutputParser()
125
  # get answers
126
  answer_lst = []
127
  for question, context in zip(question_lst , context_retrieved_lst):