zachfster commited on
Commit
72af289
·
1 Parent(s): 6acf6bf

update app

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,18 +1,16 @@
1
- !pip install -Uqq fastai
2
 
3
  from fastai.vision.all import *
4
  import gradio as gr
5
 
6
  learn = load_learner('hdmodel.pkl')
7
 
8
-
9
  categories = ('sausage', 'hotdog', 'pepperoni', 'salami', 'chorizo', 'bratwurst', 'kielbasa')
10
 
11
  def classify_image(img):
12
  pred,idx,probs = learn.predict(img)
13
  return dict(zip(categories, map(float,probs)))
14
 
15
-
16
  image = gr.inputs.Image(shape=(192,192))
17
  label = gr.outputs.Label()
18
 
 
1
+ pip install -Uqq fastai
2
 
3
  from fastai.vision.all import *
4
  import gradio as gr
5
 
6
  learn = load_learner('hdmodel.pkl')
7
 
 
8
  categories = ('sausage', 'hotdog', 'pepperoni', 'salami', 'chorizo', 'bratwurst', 'kielbasa')
9
 
10
  def classify_image(img):
11
  pred,idx,probs = learn.predict(img)
12
  return dict(zip(categories, map(float,probs)))
13
 
 
14
  image = gr.inputs.Image(shape=(192,192))
15
  label = gr.outputs.Label()
16