atharvaxcode commited on
Commit
2c77ae4
·
1 Parent(s): d34a80a

Trying to fix WindowsPath error

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -4,8 +4,7 @@ import gradio as gr
4
  def is_cat(x): return x[0].isupper()
5
 
6
  import pathlib
7
- temp = pathlib.PosixPath
8
- pathlib.PosixPath = pathlib.WindowsPath
9
 
10
  learner = load_learner('cat.pkl')
11
 
 
4
  def is_cat(x): return x[0].isupper()
5
 
6
  import pathlib
7
+ pathlib.WindowsPath = pathlib.PosixPath
 
8
 
9
  learner = load_learner('cat.pkl')
10