gowtham58 commited on
Commit
e30b75a
·
verified ·
1 Parent(s): 24d5327

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -1,11 +1,7 @@
1
  from fastai.vision.all import *
2
  import gradio as gr
3
- learn = load_learner('export.pkl')
4
- import platform
5
- import pathlib
6
- plt = platform.system()
7
- if plt == 'Linux':
8
- pathlib.WindowsPath = pathlib.PosixPath
9
  actors = learn.dls.vocab
10
  def classify_images(img):
11
  pred, idx, prob = learn.predict(img)
 
1
  from fastai.vision.all import *
2
  import gradio as gr
3
+ learn = load_learner(Path('export.pkl'))
4
+
 
 
 
 
5
  actors = learn.dls.vocab
6
  def classify_images(img):
7
  pred, idx, prob = learn.predict(img)