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

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:
81
- gr.Error("Testing")
82
  #result = "Testing"
83
  else:
84
  chain = LLMChain(llm = llm, prompt = LLM_CHAIN_PROMPT)
 
78
  result = rag_chain({"query": prompt})
79
  result = result["result"]
80
  except:
81
+ raise gr.Error("Testing")
82
  #result = "Testing"
83
  else:
84
  chain = LLMChain(llm = llm, prompt = LLM_CHAIN_PROMPT)