Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|