austin-e commited on
Commit
bad0e34
1 Parent(s): 393a757
Files changed (6) hide show
  1. .DS_Store +0 -0
  2. app.py +3 -3
  3. nectariney.jpg +0 -0
  4. peachy.jpg +0 -0
  5. peachy_beachy.jpg +0 -0
  6. plumy.jpg +0 -0
.DS_Store ADDED
Binary file (6.15 kB). View file
 
app.py CHANGED
@@ -10,10 +10,10 @@ def predict(img):
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
- title = "StoneFruit Classifier"
14
- description = "Never confuse a peach with a plum again"
15
  #article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
16
- examples = ['peachy_beachy.jpg']
17
  interpretation='default'
18
 
19
  gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,examples=examples,interpretation=interpretation).launch()
 
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
+ title = "StoneFruit Classifier (now with Plums!)"
14
+ description = "Never embarrasingly confuse a peach with a nectarine again"
15
  #article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
16
+ examples = ['peachy.jpg','plumy.jpg','nectariney.jpg']
17
  interpretation='default'
18
 
19
  gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,examples=examples,interpretation=interpretation).launch()
nectariney.jpg ADDED
peachy.jpg ADDED
peachy_beachy.jpg DELETED
Binary file (7.52 kB)
 
plumy.jpg ADDED