A newer version of the Gradio SDK is available:
6.2.0
title: Aphra
emoji: π
colorFrom: red
colorTo: pink
sdk: gradio
sdk_version: 5.31.0
app_file: app.py
pinned: true
license: mit
ππ¬ Aphra - Open-Source Translation Agent
ππ¬ Aphra is an open-source translation agent with a workflow architecture designed to enhance the quality of text translations by leveraging large language models (LLMs). Unlike traditional translation tools that rely solely on direct translations, Aphra introduces a multi-stage, context-aware process that includes glossary creation, contextual search, critique, and refinement. This approach aims to produce translations that not only retain the original meaning but also incorporate translator notes, contextual adjustments, and stylistic improvements.
Features
- Multi-stage Translation Process: Analysis β Search β Translation β Critique β Refinement
- Context-Aware: Uses web search to gather contextual information about key terms
- Flexible Model Selection: Choose different LLMs for writing, searching, and critique
- Workflow Architecture: Modular design allows for easy customization and extension
- OpenRouter Integration: Access to multiple state-of-the-art language models
How to Use
- Enter your OpenRouter API Key: Get one at OpenRouter
- Select Models: Choose appropriate models for each role (Writer, Searcher, Critic)
- Set Languages: Select source and target languages
- Input Text: Upload a file (.txt or .md) or paste your text directly
- Translate: Click the translate button and wait for the result
Model Recommendations
- Writer:
anthropic/claude-sonnet-4- Excellent for translation and refinement - Searcher:
perplexity/sonar- Specialized in web search and information gathering - Critic:
anthropic/claude-sonnet-4- Good at analyzing and providing feedback
Links
Important Note
ππ¬ Aphra is not intended to replace the work of a professional translator. Instead, it aims to facilitate multilingual support in small projects where hiring a professional translator may not be feasible. Aphra offers a practical solution for achieving quality translations in contexts where a fully professional translation service is out of scope, ensuring that language barriers do not hinder the global reach of your content.