Benny-Tang commited on
Commit
b8bc601
·
verified ·
1 Parent(s): 69dcdac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)