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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
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):
 
1
  from fastai.vision.all import *
2
  import torch
3
  import gradio as gr
4
+ learn = torch.load('export.pkl', map_location=torch.device('cpu'))
5
 
6
  actors = learn.dls.vocab
7
  def classify_images(img):