swastikdl commited on
Commit
0ea6423
·
verified ·
1 Parent(s): ca2843d
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -9,9 +9,7 @@ import pathlib
9
  import PIL
10
 
11
  # Load the exported model
12
- temp = pathlib.PosixPath
13
- pathlib.PosixPath = pathlib.WindowsPath
14
- model = load_learner(r"C:\Users\i0567479\Downloads\model.pkl")
15
 
16
  # Function to classify an image
17
  def classify_images(imgs):
 
9
  import PIL
10
 
11
  # Load the exported model
12
+ model = load_learner("model.pkl")
 
 
13
 
14
  # Function to classify an image
15
  def classify_images(imgs):