22kn1a6166-stack commited on
Commit
8b0aeae
Β·
1 Parent(s): 5691015

Add HF Spaces YAML metadata and Dockerfile for deployment

Browse files
Files changed (2) hide show
  1. Dockerfile +17 -0
  2. README.md +11 -7
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ COPY . /app
11
+
12
+ RUN python -m pip install --upgrade pip
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ EXPOSE 7860
16
+
17
+ CMD ["gunicorn", "run_app:app", "--bind", "0.0.0.0:7860", "--workers", "1"]
README.md CHANGED
@@ -1,16 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
1
  # 🌍 Multilingual Translator
2
 
3
  A beautiful, modern web application for translating text between 19+ languages instantly using Google Translate API.
4
 
5
  ## ✨ Features
6
 
7
- - 🎨 Modern gradient UI with animated background
8
- - 🌐 Support for 19+ languages
9
- - πŸ“± Fully responsive design (mobile, tablet, desktop)
10
- - ⚑ Real-time translation
11
- - 🎯 Clean and intuitive interface
12
- - πŸ”„ Auto-detect source language
13
- - πŸ“œ Scrollable text areas for long content
14
 
15
  ## πŸš€ Supported Languages
16
 
 
1
+ ---
2
+ title: Multilingual Translator
3
+ emoji: "🌍"
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: docker
7
+ python_version: "3.10"
8
+ app_file: run_app.py
9
+ pinned: false
10
+ ---
11
+
12
  # 🌍 Multilingual Translator
13
 
14
  A beautiful, modern web application for translating text between 19+ languages instantly using Google Translate API.
15
 
16
  ## ✨ Features
17
 
 
 
 
 
 
 
 
18
 
19
  ## πŸš€ Supported Languages
20