Nurbek-web commited on
Commit
6c2e9d5
1 Parent(s): d01e3ab
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,9 +4,9 @@ from fastbook import *
4
  from fastai.vision.widgets import *
5
  import gradio as gr
6
  from pathlib import Path
7
- import pathlib
8
- plt = platform.system()
9
- if plt == 'Windows': pathlib.WindowsPath = pathlib.PosixPath
10
 
11
  learn_inf = load_learner(Path('export.pkl'))
12
 
 
4
  from fastai.vision.widgets import *
5
  import gradio as gr
6
  from pathlib import Path
7
+ import pathlib
8
+
9
+ plt = platform.system() if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
10
 
11
  learn_inf = load_learner(Path('export.pkl'))
12