tyrwh commited on
Commit
54a021d
·
1 Parent(s): 771f9db

Dockerfile update, requirements update to add redis

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. nemaquant.py +0 -2
  3. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
@@ -41,4 +41,4 @@ EXPOSE 7860
41
  # Use gunicorn for production deployment if preferred over Flask's development server
42
  # CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
43
  # For simplicity during development and typical HF Spaces use:
44
- CMD ["python", "app.py"]
 
1
  # Use an official Python runtime as a parent image
2
+ FROM python:3.12
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
 
41
  # Use gunicorn for production deployment if preferred over Flask's development server
42
  # CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
43
  # For simplicity during development and typical HF Spaces use:
44
+ CMD ["python", "app.py"]
nemaquant.py CHANGED
@@ -10,8 +10,6 @@ from pathlib import Path
10
  from ultralytics import YOLO
11
  from glob import glob
12
  import re
13
-
14
- # YOLO model logic for backend inference
15
  from yolo_utils import load_model, detect_image
16
 
17
  def options():
 
10
  from ultralytics import YOLO
11
  from glob import glob
12
  import re
 
 
13
  from yolo_utils import load_model, detect_image
14
 
15
  def options():
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  Flask==3.1.1
2
- numpy==2.3.2
3
  opencv_python==4.12.0.88
4
  pandas==2.3.1
5
  Pillow==11.3.0
 
1
  Flask==3.1.1
2
+ numpy==2.2.6
3
  opencv_python==4.12.0.88
4
  pandas==2.3.1
5
  Pillow==11.3.0