AItoolstack commited on
Commit
936b2ba
·
verified ·
1 Parent(s): f87943d

Update app/routers/inference.py

Browse files
Files changed (1) hide show
  1. app/routers/inference.py +2 -2
app/routers/inference.py CHANGED
@@ -21,8 +21,8 @@ templates = Jinja2Templates(directory=TEMPLATES_DIR)
21
 
22
  router = APIRouter()
23
 
24
- UPLOAD_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), "static", "uploads")
25
- RESULTS_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), "static", "results")
26
 
27
  os.makedirs(UPLOAD_DIR, exist_ok=True)
28
  os.makedirs(RESULTS_DIR, exist_ok=True)
 
21
 
22
  router = APIRouter()
23
 
24
+ UPLOAD_DIR = os.path.join("/tmp", "uploads")
25
+ RESULTS_DIR = os.path.join("/tmp", "results")
26
 
27
  os.makedirs(UPLOAD_DIR, exist_ok=True)
28
  os.makedirs(RESULTS_DIR, exist_ok=True)