Spaces:
Sleeping
Sleeping
Daniel Pedrinho commited on
Commit ·
c37c122
1
Parent(s): df89e8e
Add Files
Browse files- Dockerfile +12 -0
- requirements.txt +10 -0
Dockerfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
+
|
| 8 |
+
COPY . .
|
| 9 |
+
|
| 10 |
+
EXPOSE 7860
|
| 11 |
+
|
| 12 |
+
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi==0.128.0
|
| 2 |
+
uvicorn[standard]==0.40.0
|
| 3 |
+
transformers==5.3.0
|
| 4 |
+
torch==2.10.0
|
| 5 |
+
pydantic==2.12.5
|
| 6 |
+
numpy==2.4.3
|
| 7 |
+
safetensors==0.7.0
|
| 8 |
+
python-multipart==0.0.22
|
| 9 |
+
tokenizers==0.22.2
|
| 10 |
+
huggingface_hub==1.3.3
|