File size: 806 Bytes
9bf2337
 
 
 
 
 
 
 
 
 
 
 
 
 
611063b
9bf2337
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Start from a stable Python image
FROM python:3.8-slim

# Install system dependencies (for unzip)
RUN apt-get update && apt-get install -y unzip

# Set the working directory
WORKDIR /app

# Install all necessary Python libraries (using the guaranteed working TensorFlow version 2.13.1)
RUN pip install tensorflow==2.13.1 mediapipe==0.10.11 opencv-python scikit-learn numpy gradio

# Copy the TFLite model (the smaller, optimized file) to the /tmp directory
# NOTE: You MUST upload the file named 'sign_language_model_lite.tflite' to your Space
# The file name you uploaded: sign_language_model_lite.tflite
COPY sign_language_model_lite.tflite /tmp/sign_language_model_lite.tflite
# Copy the final application script
COPY app.py .

# Command to run your final application interface
CMD ["python", "app.py"]