jan-gerhard-schopp commited on
Commit
2a938c6
1 Parent(s): be378fa
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ import sys
12
  sys.modules["__main__"].is_horse = is_horse
13
 
14
  # Upload your model
15
- learn = load_learner('/model.pkl')
16
 
17
  categories = learn.dls.vocab
18
 
@@ -24,7 +24,7 @@ image = gr.Image()
24
  label = gr.Label()
25
 
26
  # Upload your own images and link them
27
- examples = ['/horse.jpg', '/zebra.jpg']
28
 
29
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
30
  intf.launch()
 
12
  sys.modules["__main__"].is_horse = is_horse
13
 
14
  # Upload your model
15
+ learn = load_learner('model.pkl')
16
 
17
  categories = learn.dls.vocab
18
 
 
24
  label = gr.Label()
25
 
26
  # Upload your own images and link them
27
+ examples = ['horse.jpg', 'zebra.jpg']
28
 
29
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
30
  intf.launch()