Spaces:
Build error
Build error
Download core/report_builder.py from prashantpatil3299/ProjectLensAI: direct link, hf CLI and curl.
- Browser
- Download file 868 Bytes
-
https://huggingface.co/spaces/prashantpatil3299/ProjectLensAI/resolve/main/core/report_builder.py
- Command line
-
hf download hf://spaces/prashantpatil3299/ProjectLensAI/core/report_builder.py
-
curl -L -o report_builder.py https://huggingface.co/spaces/prashantpatil3299/ProjectLensAI/resolve/main/core/report_builder.py
868 Bytes
| 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() | |
| } |