sqlbipro commited on
Commit
69a2b4b
·
1 Parent(s): 8951ddb

path logic change in app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -6,7 +6,9 @@ import gradio as gr
6
  import pathlib
7
 
8
  from pathlib import PosixPath
9
- pathlib.PosixPath = pathlib.Path
 
 
10
 
11
  # ---------- 1. load the trained learner ----------
12
  learn = load_learner('bear_classifier.pkl')
 
6
  import pathlib
7
 
8
  from pathlib import PosixPath
9
+ plt = platform.system()
10
+ if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
11
+
12
 
13
  # ---------- 1. load the trained learner ----------
14
  learn = load_learner('bear_classifier.pkl')