Spaces:
Runtime error
Runtime error
carlfeynman
commited on
Commit
•
3bcac80
1
Parent(s):
d38f6d4
log
Browse files
server.py
CHANGED
@@ -36,9 +36,11 @@ def store_img(image):
|
|
36 |
|
37 |
@app.post("/predict")
|
38 |
async def predict(image: UploadFile):
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
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 |
|