Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
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):
|