Spaces:
Running
Running
Commit
·
6c31b41
1
Parent(s):
3491b47
Refactor main.py and add NUMBA_DISABLE_JIT environment variable
Browse files- app/main.py +2 -0
- requirements.txt +1 -2
app/main.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
|
|
|
2 |
from fastapi import FastAPI, Request
|
3 |
from fastapi.responses import JSONResponse
|
4 |
from app.api.routes import router
|
@@ -8,6 +9,7 @@ from app.api.forgery_routes import router as forgery_router
|
|
8 |
import logging
|
9 |
|
10 |
app = FastAPI()
|
|
|
11 |
|
12 |
@app.on_event("startup")
|
13 |
async def startup_event():
|
|
|
1 |
|
2 |
+
import os
|
3 |
from fastapi import FastAPI, Request
|
4 |
from fastapi.responses import JSONResponse
|
5 |
from app.api.routes import router
|
|
|
9 |
import logging
|
10 |
|
11 |
app = FastAPI()
|
12 |
+
os.environ['NUMBA_DISABLE_JIT'] = '1'
|
13 |
|
14 |
@app.on_event("startup")
|
15 |
async def startup_event():
|
requirements.txt
CHANGED
@@ -4,8 +4,7 @@ ffmpeg==1.4
|
|
4 |
ffmpeg_python==0.2.0
|
5 |
firebase_admin==6.5.0
|
6 |
ImageHash==4.3.1
|
7 |
-
|
8 |
-
librosa==0.9.2
|
9 |
moviepy==1.0.3
|
10 |
numpy>=1.23.5,<2.0.0
|
11 |
opencv_python==4.10.0.84
|
|
|
4 |
ffmpeg_python==0.2.0
|
5 |
firebase_admin==6.5.0
|
6 |
ImageHash==4.3.1
|
7 |
+
librosa==0.10.2.post1
|
|
|
8 |
moviepy==1.0.3
|
9 |
numpy>=1.23.5,<2.0.0
|
10 |
opencv_python==4.10.0.84
|