Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,11 @@ from torchvision import transforms
|
|
4 |
import torch
|
5 |
import PIL
|
6 |
from streamlit_image_select import image_select
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
#Transforming the Input Image
|
9 |
img_transform = transforms.Compose([
|
|
|
4 |
import torch
|
5 |
import PIL
|
6 |
from streamlit_image_select import image_select
|
7 |
+
import pathlib
|
8 |
+
import platform
|
9 |
+
plt = platform.system()
|
10 |
+
if plt == 'Linux':
|
11 |
+
pathlib.WindowsPath = pathlib.PosixPath
|
12 |
|
13 |
#Transforming the Input Image
|
14 |
img_transform = transforms.Compose([
|