seyma9gulsen commited on
Commit
660b201
·
1 Parent(s): 676d2b9

fixed WindowPath issue

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -3,6 +3,9 @@ from fastai.vision.all import *
3
  import pathlib
4
  import os
5
 
 
 
 
6
  # Load the exported model
7
  learn = load_learner("model_mnist.pkl")
8
 
 
3
  import pathlib
4
  import os
5
 
6
+ # 🔧 Fix for WindowsPath issue on Linux (Hugging Face Spaces)
7
+ pathlib.WindowsPath = pathlib.PosixPath
8
+
9
  # Load the exported model
10
  learn = load_learner("model_mnist.pkl")
11