File size: 1,655 Bytes
13ad3f7
 
 
 
 
 
 
 
 
 
 
 
7c6cdf1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
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.**