Digambar29 commited on
Commit
df0a2e0
·
1 Parent(s): e11faf7

Removed frontend mount for API-only Docker deployment

Browse files
Files changed (1) hide show
  1. model/api.py +0 -3
model/api.py CHANGED
@@ -28,6 +28,3 @@ async def predict_emotion(file: UploadFile = File(...)):
28
  image = Image.open(io.BytesIO(contents)).convert("RGB")
29
  emotion = predict(image)
30
  return {"emotion": emotion}
31
-
32
- # Mounted frontend at last
33
- app.mount("/", StaticFiles(directory="../frontend", html=True), name="frontend")
 
28
  image = Image.open(io.BytesIO(contents)).convert("RGB")
29
  emotion = predict(image)
30
  return {"emotion": emotion}