A Blazor WebAssembly application that leverages Google's Gemini AI to provide intelligent summarization of text files.
- Upload and process text files (.txt format)
- Generate concise summaries using Google's Gemini AI
- Save API keys in browser local storage
- Copy generated summaries to clipboard with one click
- Clean, responsive user interface
- .NET 9.0 SDK or later
- A Gemini AI API key
- Clone the repository
- Navigate to the project directory
- Run
dotnet restoreto restore dependencies - Run
dotnet buildto build the project - Run
dotnet runto start the application - Open your browser and navigate to
https://localhost:5001
- Enter your Gemini API key in the API Configuration section
- Upload a text file (.txt format)
- Click the "Summarize Text" button
- View the generated summary
- Use the "Copy Summary" button to copy the summary to your clipboard
-
Models: Data models and DTOs
- Config: Configuration-related models
- ProcessingStatus.cs: Enum for processing state
- SummaryState.cs: Core state management for the summarization process
-
Services: Business logic and external integrations
- ITextProcessingService.cs: Interface for text processing
- GeminiTextProcessingService.cs: Gemini AI implementation
- ILocalStorageService.cs: Interface for browser storage
- BrowserLocalStorageService.cs: Implementation for local storage access
-
Pages: Blazor pages
- TextFileProcessor.razor: Main file processing component
-
Layout: Application layout components
- MainLayout.razor: Main application layout
MIT