Spaces:
Sleeping
Sleeping
Update pipeline.py
Browse files- 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)
|