Walid Sobhi commited on
Commit
ea38274
·
verified ·
1 Parent(s): 431d676

Add Space files

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HuggingFace Spaces Dockerfile for Stack 2.9
2
+ # Use this for free inference hosting on HF Spaces
3
+ # https://huggingface.co/docs/hub/spaces-sdks-docker
4
+
5
+ FROM python:3.11-slim
6
+
7
+ # Set environment
8
+ ENV PYTHONUNBUFFERED=1
9
+ ENV PORT=7860
10
+ ENV HF_HUB_ENABLE_HF_TRANSFER=1
11
+
12
+ # Install dependencies - includes Gradio, Transformers, PyTorch
13
+ RUN pip install --no-cache-dir \
14
+ gradio>=4.0.0 \
15
+ transformers>=4.40.0 \
16
+ torch \
17
+ accelerate \
18
+ huggingface_hub
19
+
20
+ # Copy app
21
+ COPY app.py .
22
+
23
+ # Expose port
24
+ EXPOSE 7860
25
+
26
+ # Run app
27
+ CMD ["python", "app.py"]