Phoenix21 commited on
Commit
dd52b12
·
verified ·
1 Parent(s): 0036873

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -222,7 +222,7 @@ def run_pipeline(query: str) -> str:
222
  final_merged = merge_responses(csv_answer, "")
223
  return tailor_chain.run({"response": final_merged}).strip()
224
 
225
- refusal_text = refusal_chain.run({"topic": "this topic"})
226
  return tailor_chain.run({"response": refusal_text}).strip()
227
  except Exception as e:
228
  raise RuntimeError(f"Error in run_runpipeline: {str(e)}")
 
222
  final_merged = merge_responses(csv_answer, "")
223
  return tailor_chain.run({"response": final_merged}).strip()
224
 
225
+ refusal_text = refusal_chain.run({"topic": topic})
226
  return tailor_chain.run({"response": refusal_text}).strip()
227
  except Exception as e:
228
  raise RuntimeError(f"Error in run_runpipeline: {str(e)}")