Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -42,6 +42,6 @@ async def PromptLLM(file: UploadFile = File(...), query: str = Form(...)):
|
|
| 42 |
chain = ConversationalRetrievalChain.from_llm(llm=llm, retriever=db.as_retriever())
|
| 43 |
|
| 44 |
result = chain({"question": query, "chat_history": ''})
|
| 45 |
-
return result
|
| 46 |
|
| 47 |
|
|
|
|
| 42 |
chain = ConversationalRetrievalChain.from_llm(llm=llm, retriever=db.as_retriever())
|
| 43 |
|
| 44 |
result = chain({"question": query, "chat_history": ''})
|
| 45 |
+
return result
|
| 46 |
|
| 47 |
|