Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -352,7 +352,7 @@ def make_dataloaders2(batch_size=16, n_workers=4, pin_memory=True, **kwargs): #
|
|
| 352 |
pin_memory=pin_memory)
|
| 353 |
return dataloader
|
| 354 |
|
| 355 |
-
file_up = st.file_uploader("Upload an jpg image", type=
|
| 356 |
if file_up is not None:
|
| 357 |
im = Image.open(file_up)
|
| 358 |
st.text(body=f"Size of uploaded image {im.shape}")
|
|
|
|
| 352 |
pin_memory=pin_memory)
|
| 353 |
return dataloader
|
| 354 |
|
| 355 |
+
file_up = st.file_uploader("Upload an jpg image", type=['png', 'jpeg', 'jpg'])
|
| 356 |
if file_up is not None:
|
| 357 |
im = Image.open(file_up)
|
| 358 |
st.text(body=f"Size of uploaded image {im.shape}")
|