Chris Alexiuk commited on
Commit
014ab39
1 Parent(s): 28e9db0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ chain = load_qa_chain(OpenAI(temperature=0), chain_type="stuff")
19
 
20
  def make_inference(query):
21
  docs = docsearch.get_relevant_documents(query)
22
- chain.run(input_documents=docs, question=query)
23
 
24
  if __name__ == "__main__":
25
  # make a gradio interface
 
19
 
20
  def make_inference(query):
21
  docs = docsearch.get_relevant_documents(query)
22
+ return(chain.run(input_documents=docs, question=query))
23
 
24
  if __name__ == "__main__":
25
  # make a gradio interface