xuyaxiong commited on
Commit
969dbb1
1 Parent(s): 7947d22

修改:模型路径问题

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  from fastai.vision.all import *
2
  import gradio as gr
3
 
4
- learn = load_learner('./export.pkl')
 
5
  categories = ('Cat', 'Dog')
6
 
7
  def classify_image(img):
 
1
  from fastai.vision.all import *
2
  import gradio as gr
3
 
4
+ modelPath = Path('./export.pkl')
5
+ learn = load_learner(modelPath)
6
  categories = ('Cat', 'Dog')
7
 
8
  def classify_image(img):