8000 GitHub - KazKozDev/ConText: ConText is a desktop app for secure, local text translation using Ollama LLMs.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

KazKozDev/ConText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConText - Local Secure Translation Tool

ConText is a desktop app for secure, local text translation using Ollama LLMs. It supports language detection, text-to-speech, web scraping, text summarization, and YouTube transcript extraction, all processed locally.

Cover

Features

Feature Description
Local translation Process translations using Ollama models locally
Language detection Automatically identify the language of input text
Text-to-speech Convert text to WAV audio files
Web content scraping Extract text from websites for translation
Text summarization Create concise summaries of longer texts
YouTube transcript retrieval Get transcripts from YouTube videos
Multiple language support Translate between various languages
Configurable text chunking Customize text processing parameters

Prerequisites

  • Python 3.8+
  • Ollama installed and running

Setup

  1. Clone the repository:
git clone https://github.com/KazKozDev/ConText.git cd ConText
  1. Set up the backend:
cd backend 
python -m venv venv 
source venv/bin/activate # On Windows: venv\Scripts\activate 
pip install -r requirements.txt

Running

  1. Start Ollama:
ollama serve
  1. Start the backend:
cd backend 
source venv/bin/activate # On Windows: venv\Scripts\activate 
python app.py

Backend runs on http://localhost:5002.

API Reference

Endpoint Function Description
/health Server status Check if the server is running properly
/translate Translate text Convert text between languages
/detect-language Detect language Identify the language of input text
/tts Text-to-speech Convert text to audio format
/scrape-url Scrape web content Extract text from web pages
/summarize Summarize text Create concise summaries of texts
/youtube-transcript YouTube transcript Extract transcripts from YouTube videos

Example Usage

Translate English to Spanish:

curl -X POST http://localhost:5002/translate \ 
-H "Content-Type: application/json" \ 
-d '{"text": "Hello, world!", "source_lang": "en", "target_lang": "es"}'

Response:

{"translated_text": "¡Hola, mundo!"}

If you like this project, please give it a star ⭐

For questions, feedback, or support, reach out to:

Artem KK | MIT LICENSE

About

ConText is a desktop app for secure, local text translation using Ollama LLMs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published
0