sqlbipro commited on
Commit
b00abb9
·
1 Parent(s): 21cb54f

changed methos call

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -2,7 +2,10 @@ import gradio as gr
2
  from fastai.vision.all import *
3
  import skimage
4
 
5
- learn = Learner.load(file='export.pkl')
 
 
 
6
 
7
  labels = learn.dls.vocab
8
  def predict(img):
 
2
  from fastai.vision.all import *
3
  import skimage
4
 
5
+ learner_instance = Learner() # Assuming Learner is your class
6
+ learner_instance.load(file='export.pkl')
7
+
8
+ #learn = Learner.load(file='export.pkl')
9
 
10
  labels = learn.dls.vocab
11
  def predict(img):