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