JaiSurya commited on
Commit
0da364f
·
1 Parent(s): 48bc30e

fixed permission issues

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. app/logics.py +1 -1
Dockerfile CHANGED
@@ -6,6 +6,9 @@ ENV FLASK_APP=main.py
6
  ENV FLASK_ENV=production
7
  ENV PORT=7860
8
 
 
 
 
9
  RUN apt-get update && apt-get install -y \
10
  libopencv-dev \
11
  build-essential \
 
6
  ENV FLASK_ENV=production
7
  ENV PORT=7860
8
 
9
+ ENV MPLCONFIGDIR=/tmp/matplotlib
10
+ ENV YOLO_CONFIG_DIR=/tmp/Ultralytics
11
+
12
  RUN apt-get update && apt-get install -y \
13
  libopencv-dev \
14
  build-essential \
app/logics.py CHANGED
@@ -10,7 +10,7 @@ from werkzeug.utils import secure_filename
10
  from app import app
11
 
12
  # Configurations
13
- UPLOAD_FOLDER = os.path.join(app.root_path, 'static', 'uploads')
14
  MODEL_DIR = os.path.join(app.root_path,'models')
15
  ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'}
16
 
 
10
  from app import app
11
 
12
  # Configurations
13
+ UPLOAD_FOLDER = '/tmp/uploads'
14
  MODEL_DIR = os.path.join(app.root_path,'models')
15
  ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'}
16