Spaces:
Build error
Build error
Update app.py
Browse files
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)
|