AhmedRabie01 commited on
Commit
db12eca
·
verified ·
1 Parent(s): da59a51

Update routes/predict_batch.py

Browse files
Files changed (1) hide show
  1. routes/predict_batch.py +0 -12
routes/predict_batch.py CHANGED
@@ -1,15 +1,3 @@
1
- import os
2
- print("ml dir contents:", os.listdir("/app/Sentiment/ml"))
3
- print("model dir exists:", os.path.exists("/app/Sentiment/ml/model"))
4
- import os, sys
5
- print("CWD:", os.getcwd())
6
- print("sys.path:", sys.path)
7
-
8
- import Sentiment
9
- print("Sentiment imported from:", getattr(Sentiment, "__file__", "namespace/no __file__"))
10
-
11
- import Sentiment.ml
12
- print("Sentiment.ml path:", list(getattr(Sentiment.ml, "__path__", [])))
13
  from fastapi import APIRouter, UploadFile, File, Query
14
  import torch
15
  import pandas as pd
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from fastapi import APIRouter, UploadFile, File, Query
2
  import torch
3
  import pandas as pd