Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
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 = ['
|
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(
|