dcorcoran commited on
Commit
919404f
·
1 Parent(s): 5b7ea84

Error handling

Browse files
Files changed (1) hide show
  1. app/main.py +1 -3
app/main.py CHANGED
@@ -10,9 +10,8 @@ from app.services.embedding_service import EmbeddingService
10
  from app.services.similarity_service import SimilarityService
11
  from app.services.ocr_service import OCRService
12
  from app.schemas import CardResponse
13
- from app.config import settings
14
-
15
 
 
16
 
17
 
18
  # ---------------
@@ -76,7 +75,6 @@ async def predict(file: UploadFile = File(...)):
76
  except Exception as e:
77
  return JSONResponse(status_code=500, content={"error": str(e)})
78
 
79
-
80
  import uvicorn
81
 
82
  if __name__ == "__main__":
 
10
  from app.services.similarity_service import SimilarityService
11
  from app.services.ocr_service import OCRService
12
  from app.schemas import CardResponse
 
 
13
 
14
+ import requests
15
 
16
 
17
  # ---------------
 
75
  except Exception as e:
76
  return JSONResponse(status_code=500, content={"error": str(e)})
77
 
 
78
  import uvicorn
79
 
80
  if __name__ == "__main__":