Skip to content

locally hosted orc to text summary pipeline

fredhdx/AI_summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Summarizer

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).

Features

  • 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

Project Structure

.
├── 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

Setup

  1. Backend Setup:
cd backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
  1. Frontend Setup:
cd frontend
npm install
  1. Environment Configuration: Create a .env file in the backend directory:
AI_SERVICE_TYPE=deepseek
AI_API_KEY=your_api_key
AI_API_BASE_URL=https://api.deepseek.com/v1

Running the Application

  1. Start the backend server:
cd backend
python run.py
  1. Start the frontend development server:
cd frontend
npm start

The application will be available at:

Usage

  1. Text Summarization:

    • Enter text in the text box
    • Click "Summarize"
    • View the AI-generated summary
  2. File Summarization:

    • Drag and drop a PDF or Word file
    • Click "Summarize"
    • View the AI-generated summary

Development

The application is designed to be easily extensible:

  • New AI services can be added by implementing the AIService interface
  • Additional file types can be supported by extending the DocumentService
  • Frontend components can be modified or new ones added as needed

License

MIT License

About

locally hosted orc to text summary pipeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published