Spaces:
Running
Running
Commit
·
9bed445
1
Parent(s):
00aa8cb
Refactor main.py to disable JIT, remove unused import, and update Numba and librosa caching
Browse files- app/main.py +2 -1
app/main.py
CHANGED
@@ -7,9 +7,10 @@ from app.core.firebase_config import initialize_firebase
|
|
7 |
from app.api.forgery_routes import router as forgery_router
|
8 |
import logging
|
9 |
import os
|
|
|
10 |
os.environ['NUMBA_DISABLE_JIT'] = '1'
|
11 |
os.environ['NUMBA_DISABLE_FUNCTION_CACHING'] = '1'
|
12 |
-
os.environ['
|
13 |
import numba
|
14 |
|
15 |
numba.config.DISABLE_JIT = True
|
|
|
7 |
from app.api.forgery_routes import router as forgery_router
|
8 |
import logging
|
9 |
import os
|
10 |
+
import tempfile
|
11 |
os.environ['NUMBA_DISABLE_JIT'] = '1'
|
12 |
os.environ['NUMBA_DISABLE_FUNCTION_CACHING'] = '1'
|
13 |
+
os.environ['NUMBA_CACHE_DIR'] = tempfile.gettempdir()
|
14 |
import numba
|
15 |
|
16 |
numba.config.DISABLE_JIT = True
|