Spaces:
No application file
No application file
fix
Browse files- Dockerfile +4 -1
- requirements.txt +0 -3
Dockerfile
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
# Use a lightweight Python image
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
@@ -11,7 +14,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 11 |
# Copy rest of the code
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
-
# Expose the default Gradio port
|
| 15 |
EXPOSE 7860
|
| 16 |
|
| 17 |
# Run the FastAPI app using Uvicorn
|
|
|
|
| 1 |
# Use a lightweight Python image
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# System dependencies required for edge-tts and audio processing
|
| 5 |
+
RUN apt-get update && apt-get install -y ffmpeg libsndfile1 && rm -rf /var/lib/apt/lists/*
|
| 6 |
+
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
|
|
|
| 14 |
# Copy rest of the code
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
+
# Expose the default Gradio/FastAPI port
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
# Run the FastAPI app using Uvicorn
|
requirements.txt
CHANGED
|
@@ -5,11 +5,8 @@ transformers
|
|
| 5 |
torch
|
| 6 |
bcrypt
|
| 7 |
gradio>=4.44.1,<5
|
| 8 |
-
|
| 9 |
uvicorn>=0.14.0
|
| 10 |
-
spaces
|
| 11 |
fastapi<0.113.0
|
| 12 |
-
|
| 13 |
itsdangerous
|
| 14 |
reportlab
|
| 15 |
deep-translator
|
|
|
|
| 5 |
torch
|
| 6 |
bcrypt
|
| 7 |
gradio>=4.44.1,<5
|
|
|
|
| 8 |
uvicorn>=0.14.0
|
|
|
|
| 9 |
fastapi<0.113.0
|
|
|
|
| 10 |
itsdangerous
|
| 11 |
reportlab
|
| 12 |
deep-translator
|