Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ load_dotenv()
|
|
19 |
HF_token = os.environ["HF_TOKEN"]
|
20 |
vectorstores = process_pdf()
|
21 |
|
22 |
-
async def chat(query,history,
|
23 |
"""taking a query and a message history, use a pipeline (reformulation, retriever, answering) to yield a tuple of:
|
24 |
(messages in gradio format, messages in langchain format, source documents)"""
|
25 |
|
|
|
19 |
HF_token = os.environ["HF_TOKEN"]
|
20 |
vectorstores = process_pdf()
|
21 |
|
22 |
+
async def chat(query,history,sources,reports):
|
23 |
"""taking a query and a message history, use a pipeline (reformulation, retriever, answering) to yield a tuple of:
|
24 |
(messages in gradio format, messages in langchain format, source documents)"""
|
25 |
|