Spaces:
Sleeping
Sleeping
|
Download README.md from kalyan9/Language-Translator: direct link, hf CLI and curl.
- Browser
- Download file 2.45 kB
-
https://huggingface.co/spaces/kalyan9/Language-Translator/resolve/main/README.md
- Command line
-
hf download hf://spaces/kalyan9/Language-Translator/README.md
-
curl -L -o README.md https://huggingface.co/spaces/kalyan9/Language-Translator/resolve/main/README.md
2.45 kB
| 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! | |