Spaces:
Sleeping
Sleeping
Upload api.py
#1
by Hassan73 - opened
api.py
CHANGED
|
@@ -28,7 +28,7 @@ async def predict_skin_disease(file: UploadFile = File(...)):
|
|
| 28 |
contents = await file.read()
|
| 29 |
image = Image.open(io.BytesIO(contents)).convert("RGB")
|
| 30 |
|
| 31 |
-
#
|
| 32 |
inputs = processor(images=image, return_tensors="pt")
|
| 33 |
|
| 34 |
# Make prediction
|
|
|
|
| 28 |
contents = await file.read()
|
| 29 |
image = Image.open(io.BytesIO(contents)).convert("RGB")
|
| 30 |
|
| 31 |
+
# Make prediction
|
| 32 |
inputs = processor(images=image, return_tensors="pt")
|
| 33 |
|
| 34 |
# Make prediction
|