Project Brief
Build a tool that takes a long piece of text (like a news article or a report) as input and produces a concise, accurate summary as output.
Core Tasks
- Create a simple web interface with a text area for input and a display area for the output.
- Write a backend script (e.g., in Python using Flask or FastAPI) that receives the text from the frontend.
- In the backend, create a detailed prompt that instructs an LLM to summarize the provided text, specifying the desired length and focus of the summary.
- Call a major AI API (like OpenAI or Anthropic) with the text and prompt.
- Return the generated summary to the frontend and display it to the user.
Stretch Goals
- Add an option to specify the summary length (e.g., short, medium, long).
- Allow the user to input a URL, and have your backend automatically scrape the text content from that page.