Phoenix21 commited on
Commit
d329916
·
verified ·
1 Parent(s): ff5fc3d

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -402,7 +402,7 @@ def run_pipeline(query: str) -> str:
402
 
403
  # If out-of-scope, refuse
404
  if classification == "OutOfScope":
405
- refusal_text = refusal_chain.invoke({"topic": topic,"query":query}})
406
  return tailor_chain.run({"response": refusal_text}).strip()
407
 
408
  # Otherwise, do a RAG query and also do a web search (cached)
 
402
 
403
  # If out-of-scope, refuse
404
  if classification == "OutOfScope":
405
+ refusal_text = refusal_chain.invoke({"topic": topic,"query":query})
406
  return tailor_chain.run({"response": refusal_text}).strip()
407
 
408
  # Otherwise, do a RAG query and also do a web search (cached)