Spaces:
Sleeping
Sleeping
File size: 2,450 Bytes
8b0aeae 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 2115c35 5691015 | 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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | ---
title: Multilingual Translator
emoji: "π"
colorFrom: indigo
colorTo: purple
sdk: docker
python_version: "3.10"
app_file: run_app.py
pinned: false
---
# π Multilingual Translator
A beautiful, modern web application for translating text between 19+ languages instantly using Google Translate API.
## β¨ Features
## π Supported Languages
English, French, Spanish, German, Italian, Japanese, Hindi, Telugu, Bengali, Kannada, Tamil, Malayalam, Marathi, Arabic, Russian, Chinese (Simplified), Portuguese, Korean, Dutch
## π» Tech Stack
- **Backend**: Flask (Python)
- **Frontend**: HTML5, CSS3, JavaScript
- **Translation API**: deep-translator (Google Translate)
- **Production Server**: Gunicorn
## π¦ Installation
1. Clone the repository:
```bash
git clone https://github.com/KalyanKumarReddy9/multilingual-translator.git
cd multilingual-translator
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
3. Run the application:
```bash
python run_app.py
```
4. Open your browser and navigate to:
```
http://localhost:7860
```
## π Deployment
### Deploy to Hugging Face Spaces
1. Create a new Space on [Hugging Face](https://huggingface.co/spaces)
2. Upload all files from this repository
3. The app will automatically deploy!
### Deploy to Heroku
1. Install Heroku CLI and login:
```bash
heroku login
heroku create your-app-name
git push heroku main
```
### Deploy to Railway/Render
1. Connect your GitHub repository
2. Set start command: `gunicorn run_app:app`
3. Deploy!
## π§ Configuration
- **Port**: Default is 7860 (configurable via PORT environment variable)
- **Host**: 0.0.0.0 (accessible from all network interfaces)
- **Debug**: Disabled in production
## π Usage
1. Select your target language from the dropdown
2. Type or paste text in the "Original Text" box
3. Click "Translate Now" button (or press Ctrl+Enter)
4. View the translation in the "Translation" box
## π¨ UI Features
- Gradient animated background
- Glass morphism effect
- Custom styled scrollbars
- Hover animations and focus states
- Loading spinner during translation
- Responsive grid layout
## π‘οΈ Security
- No API keys required (uses free Google Translate)
- No user data stored
- Server-side error handling
## π¨βπ» Author
**Kalyan Kumar Reddy**
- GitHub: [@KalyanKumarReddy9](https://github.com/KalyanKumarReddy9)
## β Show your support
Give a βοΈ if you like this project!
|