carlfeynman commited on
Commit
3bcac80
1 Parent(s): d38f6d4
Files changed (1) hide show
  1. server.py +5 -3
server.py CHANGED
@@ -36,9 +36,11 @@ def store_img(image):
36
 
37
  @app.post("/predict")
38
  async def predict(image: UploadFile):
39
- tensor_image, raw_image = process_image(image)
40
- print(tensor_image.shape)
41
- prediction = mnist_classifier.predict(tensor_image)
 
42
  # store_img(raw_image)
 
43
  return {"prediction": prediction}
44
 
 
36
 
37
  @app.post("/predict")
38
  async def predict(image: UploadFile):
39
+ print(image)
40
+ # tensor_image, raw_image = process_image(image)
41
+ # print(tensor_image.shape)
42
+ # prediction = mnist_classifier.predict(tensor_image)
43
  # store_img(raw_image)
44
+ prediction = []
45
  return {"prediction": prediction}
46