Spaces:
Sleeping
Sleeping
Commit ·
b048b5d
1
Parent(s): a4197a6
??
Browse files- Dockerfile +0 -1
- app.py +1 -0
Dockerfile
CHANGED
|
@@ -9,7 +9,6 @@ WORKDIR /app
|
|
| 9 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 10 |
RUN pip cache purge
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 12 |
-
RUN apt-get update && apt-get install -y libgl1-mesa-glx
|
| 13 |
|
| 14 |
COPY --chown=user . /app
|
| 15 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 9 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 10 |
RUN pip cache purge
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
| 12 |
|
| 13 |
COPY --chown=user . /app
|
| 14 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
CHANGED
|
@@ -8,6 +8,7 @@ from PIL import Image
|
|
| 8 |
import os
|
| 9 |
from collections import Counter
|
| 10 |
from ultralytics import YOLO
|
|
|
|
| 11 |
|
| 12 |
app = FastAPI()
|
| 13 |
|
|
|
|
| 8 |
import os
|
| 9 |
from collections import Counter
|
| 10 |
from ultralytics import YOLO
|
| 11 |
+
import cv2
|
| 12 |
|
| 13 |
app = FastAPI()
|
| 14 |
|