Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def imaging_agent(image_path: str):
|
|
| 32 |
arr = xrv.datasets.normalize(arr, 4096)
|
| 33 |
|
| 34 |
# Wrap in dict for TorchXRayVision
|
| 35 |
-
sample = {"img": arr}
|
| 36 |
|
| 37 |
# Apply transforms step by step
|
| 38 |
sample = xrv.datasets.XRayCenterCrop()(sample)
|
|
|
|
| 32 |
arr = xrv.datasets.normalize(arr, 4096)
|
| 33 |
|
| 34 |
# Wrap in dict for TorchXRayVision
|
| 35 |
+
sample = {"img": arr, "lab": np.array([]), "idx": np.array([])}
|
| 36 |
|
| 37 |
# Apply transforms step by step
|
| 38 |
sample = xrv.datasets.XRayCenterCrop()(sample)
|