A professional Full-Stack AI Application designed to streamline content consumption. This tool leverages state-of-the-art Large Language Models (LLMs) to provide two core services: Smart Text Summarization and High-Accuracy English-to-Arabic Translation.
Experience the application live here: AI-TransSummarizer on Hugging Face
- Smart Summarization: Uses the
facebook/bart-large-cnnmodel to condense long articles into short, informative summaries. - Neural Translation: Translates English content into fluent Arabic using the
Helsinki-NLPtranslation engine. - Dual-Mode Processing: Users can summarize and translate simultaneously in a single click.
- Responsive Dark UI: A modern, user-friendly interface with a sleek violet theme, optimized for both desktop and mobile.
- Robust Backend: Powered by FastAPI for high-speed request handling and Pydantic for data validation.
- Backend: Python 3.9, FastAPI.
- AI Framework: Hugging Face Transformers.
- Frontend: HTML5, CSS3 (Modern UI), JavaScript (Asynchronous Fetch API).
- Infrastructure: Dockerized environment deployed on Hugging Face Spaces.
The system follows a modular logic flow:
- Input: User pastes English text and selects desired tasks.
- Preprocessing: JavaScript appends hidden triggers (
summarize/ุชุฑุฌู) based on user selection. - AI Pipeline:
- If "Summarize" is triggered, the
BARTmodel reduces the text length while preserving meaning. - If "Translate" is triggered, the
OPUS-MTmodel converts the resulting text into Arabic.
- If "Summarize" is triggered, the
- Output: The processed result is displayed instantly without page reloads.
To run this project locally:
- Clone the repo:
git clone [https://github.com/PhilopateerDev/AI-TransSummarizer.git](https://github.com/PhilopateerDev/AI-TransSummarizer.git)