gowtham58 commited on
Commit
3bf9a9a
·
verified ·
1 Parent(s): 20b46d3

Update app.py

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