A modern web application that provides text summarization capabilities using AI. The application supports both direct text input and file uploads (PDF and Word documents).
- Text summarization using AI (Deepseek API)
- Support for PDF and Word document processing
- Modern React frontend with Material-UI
- FastAPI backend with modular design
- Easy integration with different AI services
.
├── backend/
│ ├── app/
│ │ ├── api/ # FastAPI routes
│ │ ├── core/ # Core configuration
│ │ ├── models/ # Data models
│ │ └── services/ # Business logic
│ └── requirements.txt
└── frontend/
├── src/
│ ├── components/ # React components
│ ├── services/ # API services
│ └── utils/ # Utility functions
└── package.json
- Backend Setup:
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt- Frontend Setup:
cd frontend
npm install- Environment Configuration:
Create a
.envfile in the backend directory:
AI_SERVICE_TYPE=deepseek
AI_API_KEY=your_api_key
AI_API_BASE_URL=https://api.deepseek.com/v1
- Start the backend server:
cd backend
python run.py- Start the frontend development server:
cd frontend
npm startThe application will be available at:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
-
Text Summarization:
- Enter text in the text box
- Click "Summarize"
- View the AI-generated summary
-
File Summarization:
- Drag and drop a PDF or Word file
- Click "Summarize"
- View the AI-generated summary
The application is designed to be easily extensible:
- New AI services can be added by implementing the
AIServiceinterface - Additional file types can be supported by extending the
DocumentService - Frontend components can be modified or new ones added as needed
MIT License