Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ async def chat(query,history,audience,sources,reports):
|
|
84 |
chain = prompt | llm_qa | StrOutputParser()
|
85 |
# get answers
|
86 |
answer_lst = []
|
87 |
-
for question, context in zip(
|
88 |
answer = chain.invoke({"context": context, "question": question,'audience':audience_prompt, 'language':'english'})
|
89 |
answer_lst.append(answer)
|
90 |
docs_html = []
|
|
|
84 |
chain = prompt | llm_qa | StrOutputParser()
|
85 |
# get answers
|
86 |
answer_lst = []
|
87 |
+
for question, context in zip(question_lst , context_retrieved_lst):
|
88 |
answer = chain.invoke({"context": context, "question": question,'audience':audience_prompt, 'language':'english'})
|
89 |
answer_lst.append(answer)
|
90 |
docs_html = []
|