Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- Dockerfile +2 -0
- requirements.txt +2 -1
Dockerfile
CHANGED
|
@@ -3,6 +3,8 @@ FROM python:3.9-slim
|
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Install system dependencies
|
| 8 |
# We use libgl1 and libglib2.0-0 which are the modern equivalents
|
|
|
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
+
RUN mkdir -p /tmp/Ultralytics && chmod -R 777 /tmp/Ultralytics
|
| 7 |
+
ENV YOLO_CONFIG_DIR=/tmp/Ultralytics
|
| 8 |
|
| 9 |
# Install system dependencies
|
| 10 |
# We use libgl1 and libglib2.0-0 which are the modern equivalents
|
requirements.txt
CHANGED
|
@@ -5,4 +5,5 @@ python-multipart
|
|
| 5 |
pillow
|
| 6 |
numpy
|
| 7 |
torch
|
| 8 |
-
torchvision
|
|
|
|
|
|
| 5 |
pillow
|
| 6 |
numpy
|
| 7 |
torch
|
| 8 |
+
torchvision
|
| 9 |
+
transformers
|