Phoenix21 commited on
Commit
ae2e497
·
verified ·
1 Parent(s): 3c486f4

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +3 -0
pipeline.py CHANGED
@@ -204,6 +204,9 @@ def run_pipeline(query: str) -> str:
204
 
205
  refusal_text = refusal_chain.run({"topic": "this topic"})
206
  return tailor_chain.run({"response": refusal_text}).strip()
 
 
 
207
 
208
  # Initialize chains and vectorstores
209
  classification_chain = get_classification_chain()
 
204
 
205
  refusal_text = refusal_chain.run({"topic": "this topic"})
206
  return tailor_chain.run({"response": refusal_text}).strip()
207
+ except Exception as e:
208
+ raise RuntimeError(f"Error in run_runpipeline: {str(e)}")
209
+
210
 
211
  # Initialize chains and vectorstores
212
  classification_chain = get_classification_chain()