jonathanIckovich commited on
Commit
db19107
·
1 Parent(s): ede734c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -1,17 +1,9 @@
1
  import gradio as gr
2
  from fastai.vision.all import *
3
 
4
- model_path = Path('ImageDifferentiator.pkl')
5
 
6
 
7
-
8
- # Re-save the model on a non-Windows system
9
- learn = load_learner(model_path)
10
- learn.export('ImageDifferentiator_export.pkl')
11
-
12
- # Load the model using Fastai's load_learner
13
- learn = load_learner('ImageDifferentiator_export.pkl')
14
- labels = learn.dls.vocab
15
 
16
  labels = learn.dls.vocab
17
  def predict(img):
 
1
  import gradio as gr
2
  from fastai.vision.all import *
3
 
 
4
 
5
 
6
+ learn = load_learner('ImageDifferentiator.pkl')
 
 
 
 
 
 
 
7
 
8
  labels = learn.dls.vocab
9
  def predict(img):