marcosremar2 commited on
Commit
1eb94d6
·
1 Parent(s): 103deba

Fix cache directory permissions

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,12 +14,12 @@ from allosaurus.app import read_recognizer
14
  app = Flask(__name__)
15
  CORS(app)
16
 
17
- CACHE_DIR = 'cache'
18
  UPLOAD_FOLDER = 'uploads'
19
  ALLOWED_EXTENSIONS = {'wav', 'ogg', 'mp3', 'm4a'}
20
 
21
  os.makedirs("/tmp/uploads", exist_ok=True)
22
- os.makedirs(CACHE_DIR, exist_ok=True)
23
 
24
  # Disable SSL verification for model download
25
  ssl._create_default_https_context = ssl._create_unverified_context
 
14
  app = Flask(__name__)
15
  CORS(app)
16
 
17
+ CACHE_DIR = "/tmp/cache"
18
  UPLOAD_FOLDER = 'uploads'
19
  ALLOWED_EXTENSIONS = {'wav', 'ogg', 'mp3', 'm4a'}
20
 
21
  os.makedirs("/tmp/uploads", exist_ok=True)
22
+ os.makedirs("/tmp/cache", exist_ok=True)
23
 
24
  # Disable SSL verification for model download
25
  ssl._create_default_https_context = ssl._create_unverified_context