Spaces:
Build error
Build error
File size: 868 Bytes
ecb69bb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | 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()
} |