Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- Dockerfile +15 -0
- requirements.txt +12 -0
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM --platform=linux/amd64 python:3.8-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /splade-v3
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
|
| 7 |
+
RUN pip install -r requirements.txt
|
| 8 |
+
|
| 9 |
+
COPY ./app ./app
|
| 10 |
+
|
| 11 |
+
RUN ls -la ./app
|
| 12 |
+
|
| 13 |
+
expose 7860
|
| 14 |
+
|
| 15 |
+
CMD ["python", "./app/main.py"]
|
requirements.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pydantic==2.6.4
|
| 2 |
+
uvicorn==0.29.0
|
| 3 |
+
numpy
|
| 4 |
+
pandas
|
| 5 |
+
python-dotenv==1.0.1
|
| 6 |
+
requests==2.31.0
|
| 7 |
+
fastapi==0.110.1
|
| 8 |
+
transformers==4.40.0
|
| 9 |
+
huggingface-hub==0.22.2
|
| 10 |
+
torch==1.13.1+cpu
|
| 11 |
+
torchvision==0.14.1+cpu
|
| 12 |
+
-f https://download.pytorch.org/whl/cpu/torch_stable.html
|