Update main.py
Browse files
main.py
CHANGED
@@ -50,7 +50,7 @@ qa_chain = RetrievalQA.from_llm(llm=local_llm, retriever=retriever)
|
|
50 |
|
51 |
def gradinterface(query,history):
|
52 |
result = qa_chain({'query': query})
|
53 |
-
return result
|
54 |
|
55 |
|
56 |
demo = gr.ChatInterface(fn=gradinterface, title='OUR_OWN_BOT')
|
|
|
50 |
|
51 |
def gradinterface(query,history):
|
52 |
result = qa_chain({'query': query})
|
53 |
+
return result.split(' : ').strip()
|
54 |
|
55 |
|
56 |
demo = gr.ChatInterface(fn=gradinterface, title='OUR_OWN_BOT')
|