anasmkh commited on
Commit
1f76b92
·
verified ·
1 Parent(s): e835675

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -72,7 +72,7 @@ def gradinterface(query,history):
72
  chain_type_kwargs={"prompt": QA_CHAIN_PROMPT},
73
  )
74
  result = qa_chain({"query": query})
75
- return result['result'].split(':')[-1].strip()
76
 
77
 
78
  demo = gr.ChatInterface(fn=gradinterface, title='OUR_OWN_BOT')
 
72
  chain_type_kwargs={"prompt": QA_CHAIN_PROMPT},
73
  )
74
  result = qa_chain({"query": query})
75
+ return result['result']
76
 
77
 
78
  demo = gr.ChatInterface(fn=gradinterface, title='OUR_OWN_BOT')