gowtham58 commited on
Commit
18f38c4
1 Parent(s): 738757c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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([