from typing import Dict def build_report(project_type: str, tone: str, extracted_text: str) -> Dict[str, str]: summary = ( f"Project Type: {project_type}\n" f"Tone: {tone}\n" f"Overview: {extracted_text[:400]}..." ) report = f""" PROJECT REPORT ============== Project Type: {project_type} Preferred Tone: {tone} Detailed Explanation: {extracted_text} Suggested Interview Flow: 1. Start with the business problem. 2. Explain the data source and preprocessing. 3. Mention model/logic used. 4. Show evaluation or result. 5. Explain business value. 6. End with future improvements. Sample Closing: "This project helped solve a real business problem by combining data preprocessing, predictive modeling, and actionable recommendations." """ return { "summary": summary.strip(), "report": report.strip() }