BimanL commited on
Commit
4df2662
·
1 Parent(s): 5c0b20d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import skimage
6
  learn = load_learner('export.pkl')
7
 
8
  # Define the labels (in this case, just 'cat' and 'dog')
9
- labels = ['cat', 'dog']
10
 
11
  # Define the prediction function
12
  def predict(img):
@@ -19,7 +19,7 @@ def predict(img):
19
  title = "Cat vs Dog Classifier"
20
  description = "A classifier to distinguish between cats and dogs. Trained with fastai on a relevant dataset."
21
  article = "<p style='text-align: center'><a href='https://yourlinkhere.com' target='_blank'>Blog post or additional information</a></p>"
22
- examples = ['/path/to/example_image.jpg'] # Update this path to your example images
23
 
24
  # Create and launch the Gradio interface
25
  gr.Interface(
 
6
  learn = load_learner('export.pkl')
7
 
8
  # Define the labels (in this case, just 'cat' and 'dog')
9
+ labels = learn.dls.vocab
10
 
11
  # Define the prediction function
12
  def predict(img):
 
19
  title = "Cat vs Dog Classifier"
20
  description = "A classifier to distinguish between cats and dogs. Trained with fastai on a relevant dataset."
21
  article = "<p style='text-align: center'><a href='https://yourlinkhere.com' target='_blank'>Blog post or additional information</a></p>"
22
+ examples = ['example_image.jpg'] # Update this path to your example images
23
 
24
  # Create and launch the Gradio interface
25
  gr.Interface(