samyakshrestha's picture
Initial commit
fa2cb8a
raw
history blame contribute delete
338 Bytes
from .crew import ShapCrew
def generate_report(target_variable: str, image_path: str) -> str:
"""Generate a SHAP explanation report based on user input"""
crew = ShapCrew().crew()
result = crew.kickoff(inputs={
"target_variable": target_variable,
"image_path": image_path
})
return str(result).strip()