bstraehle commited on
Commit
fc83741
·
1 Parent(s): f36f02e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -78,7 +78,8 @@ def invoke(openai_api_key, use_rag, prompt):
78
  result = rag_chain({"query": prompt})
79
  result = result["result"]
80
  except:
81
- result = "Testing"
 
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:
81
+ gr.Error("Testing")
82
+ #result = "Testing"
83
  else:
84
  chain = LLMChain(llm = llm, prompt = LLM_CHAIN_PROMPT)
85
  result = chain.run({"question": prompt})