Spaces:
Sleeping
Sleeping
Commit
·
28f9750
1
Parent(s):
80bf2ab
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from PIL import Image as img
|
|
| 4 |
|
| 5 |
x = st.file_uploader("Upload Images", type=["png","jpg","jpeg"])
|
| 6 |
if x is not None:
|
| 7 |
-
st.image(img.open(x),width=
|
| 8 |
i = img.open(x)
|
| 9 |
processor = ViTImageProcessor.from_pretrained('google/vit-base-patch16-224')
|
| 10 |
model = ViTForImageClassification.from_pretrained('google/vit-base-patch16-224')
|
|
|
|
| 4 |
|
| 5 |
x = st.file_uploader("Upload Images", type=["png","jpg","jpeg"])
|
| 6 |
if x is not None:
|
| 7 |
+
st.image(img.open(x),width=255)
|
| 8 |
i = img.open(x)
|
| 9 |
processor = ViTImageProcessor.from_pretrained('google/vit-base-patch16-224')
|
| 10 |
model = ViTForImageClassification.from_pretrained('google/vit-base-patch16-224')
|