abhisheksan commited on
Commit
9760eda
·
1 Parent(s): 05bf773

Refactor main.py to disable JIT and remove unused import

Browse files
Files changed (2) hide show
  1. app/main.py +2 -0
  2. requirements.txt +2 -1
app/main.py CHANGED
@@ -6,6 +6,8 @@ from app.core.logging_config import configure_logging
6
  from app.core.firebase_config import initialize_firebase
7
  from app.api.forgery_routes import router as forgery_router
8
  import logging
 
 
9
 
10
  app = FastAPI()
11
 
 
6
  from app.core.firebase_config import initialize_firebase
7
  from app.api.forgery_routes import router as forgery_router
8
  import logging
9
+ import numba
10
+ numba.config.DISABLE_JIT = True
11
 
12
  app = FastAPI()
13
 
requirements.txt CHANGED
@@ -5,7 +5,8 @@ fastapi==0.115.0
5
  ffmpeg_python==0.2.0
6
  firebase_admin==6.5.0
7
  ImageHash==4.3.1
8
- librosa==0.10.2.post1
 
9
  numpy>=1.23.5,<2.0.0
10
  opencv_python==4.10.0.84
11
  opencv_python_headless==4.10.0.84
 
5
  ffmpeg_python==0.2.0
6
  firebase_admin==6.5.0
7
  ImageHash==4.3.1
8
+ # librosa==0.10.2.post1
9
+ librosa==0.9.2
10
  numpy>=1.23.5,<2.0.0
11
  opencv_python==4.10.0.84
12
  opencv_python_headless==4.10.0.84