rsrao1729 commited on
Commit
08059d7
1 Parent(s): 76662b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -69,7 +69,7 @@ if scale:
69
  scale_pil = Image.open(scale.name)
70
 
71
  # Remove file when done
72
- os.remove(scale.name)
73
 
74
  #inputs = processor(raw_image, return_tensors="pt").to(device)
75
  inputs = processor(scale_np, return_tensors="pt").to(device)
@@ -123,7 +123,7 @@ if image:
123
  image_pil = Image.open(image.name)
124
 
125
  # Remove file when done
126
- os.remove(image.name)
127
 
128
  #inputs = processor(raw_image, return_tensors="pt").to(device)
129
  inputs = processor(image_np, return_tensors="pt").to(device)
 
69
  scale_pil = Image.open(scale.name)
70
 
71
  # Remove file when done
72
+ ###os.remove(scale.name)
73
 
74
  #inputs = processor(raw_image, return_tensors="pt").to(device)
75
  inputs = processor(scale_np, return_tensors="pt").to(device)
 
123
  image_pil = Image.open(image.name)
124
 
125
  # Remove file when done
126
+ ###os.remove(image.name)
127
 
128
  #inputs = processor(raw_image, return_tensors="pt").to(device)
129
  inputs = processor(image_np, return_tensors="pt").to(device)