bstraehle commited on
Commit
91b8cc7
·
1 Parent(s): 9a312d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def invoke(openai_api_key, use_rag, prompt):
78
  result = rag_chain({"query": prompt})
79
  result = result["result"]
80
  except Exception as e:
81
- returns e
82
  else:
83
  chain = LLMChain(llm = llm, prompt = LLM_CHAIN_PROMPT)
84
  result = chain.run({"question": prompt})
 
78
  result = rag_chain({"query": prompt})
79
  result = result["result"]
80
  except Exception as e:
81
+ return e
82
  else:
83
  chain = LLMChain(llm = llm, prompt = LLM_CHAIN_PROMPT)
84
  result = chain.run({"question": prompt})