bstraehle commited on
Commit
634c110
·
1 Parent(s): 1057269

Update app.py

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