anasmkh commited on
Commit
b6f8d6f
·
verified ·
1 Parent(s): f79317e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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['result'].split(': ')[-1].strip()
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')