Jamin252 commited on
Commit
b694f9e
·
1 Parent(s): 4356595

Change file path

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,6 +6,7 @@ def predict(img):
6
  img = PILImage.create(img)
7
  pred,pred_idx,probs = learn.predict(img)
8
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
 
9
  inter_arguments = {
10
  "fn": predict,
11
  "inputs":gr.inputs.Image(shape=(512, 512)),
@@ -13,7 +14,7 @@ inter_arguments = {
13
  "title": "Dog Breed Classifier",
14
  "description": "It contains the ten main breeds of dogs, including Beagle, Bulldog, Chihuahua, Dachshund, German Sheperd, Golden Retriver, Husky, Malamute and Poodle",
15
  "interpretation": 'default',
16
- "examples": ["Chihuahua_1.jpg"],
17
  "article": "<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
18
 
19
  }
 
6
  img = PILImage.create(img)
7
  pred,pred_idx,probs = learn.predict(img)
8
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
9
+
10
  inter_arguments = {
11
  "fn": predict,
12
  "inputs":gr.inputs.Image(shape=(512, 512)),
 
14
  "title": "Dog Breed Classifier",
15
  "description": "It contains the ten main breeds of dogs, including Beagle, Bulldog, Chihuahua, Dachshund, German Sheperd, Golden Retriver, Husky, Malamute and Poodle",
16
  "interpretation": 'default',
17
+ "examples": ["images/Chihuahua_1.jpg"],
18
  "article": "<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
19
 
20
  }