Spaces:
Sleeping
Sleeping
Commit
·
0752cab
1
Parent(s):
7a07af2
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def upload_image():
|
|
23 |
# image_path = "assets/"
|
24 |
# image_file.save(os.path.join('/', 'img.jpg'))
|
25 |
|
26 |
-
image = Image.open(BytesIO(image_file))
|
27 |
inputs = image_processor(image, return_tensors="pt")
|
28 |
|
29 |
with torch.no_grad():
|
|
|
23 |
# image_path = "assets/"
|
24 |
# image_file.save(os.path.join('/', 'img.jpg'))
|
25 |
|
26 |
+
image = Image.open(BytesIO(image_file.read()))
|
27 |
inputs = image_processor(image, return_tensors="pt")
|
28 |
|
29 |
with torch.no_grad():
|