Spaces:
Sleeping
Sleeping
title: Vibe Translator | |
emoji: 🔥 | |
colorFrom: blue | |
colorTo: purple | |
sdk: gradio | |
sdk_version: 5.25.1 | |
app_file: app.py | |
pinned: false | |
license: apache-2.0 | |
# English-to-Russian Translator | |
A simple web application for translating text from English to Russian using a pre-trained neural model. | |
## Features | |
- Web interface built with [Gradio](https://gradio.app/) | |
- Uses the Hugging Face model [`Helsinki-NLP/opus-mt-en-ru`](https://huggingface.co/Helsinki-NLP/opus-mt-en-ru) for translation | |
- Input field for English text, translation button, and output field for Russian translation | |
- Handles empty input and long text errors gracefully | |
## How to Run (Locally) | |
1. Установите зависимости: | |
```bash | |
pip install -r requirements.txt | |
``` | |
2. Запустите приложение: | |
```bash | |
python app.py | |
``` | |
3. Откройте браузер и перейдите по адресу http://127.0.0.1:7860 | |
## How to Deploy on Hugging Face Spaces | |
1. Загрузите в репозиторий следующие файлы: | |
- `app.py` | |
- `requirements.txt` | |
- `README.md` | |
2. Создайте новый Space на [Hugging Face Spaces](https://huggingface.co/spaces) с типом Gradio. | |
3. После загрузки файлов приложение автоматически соберётся и будет доступно онлайн. | |
--- | |
## About | |
- This project was created in the **Windsurf** environment with the help of GPT-4.1. | |
- Author: [Trashchenkov Sergei](https://github.com/trashchenkov) | |
**Made with ❤️ using Gradio, Hugging Face Transformers, and GPT-4.1 in Windsurf.** | |