Spaces:
Paused
Paused
Update app.py
Browse filesUpdated to newer gradio
app.py
CHANGED
|
@@ -20,15 +20,11 @@ title = "Pet Breed Classifier"
|
|
| 20 |
description = "A pet breed classifier trained on the Oxford Pets dataset using fastai. Created as a demo from the course by Jeremy Howard."
|
| 21 |
article="<p style='text-align: center'><a href='https://course.fast.ai/' target='_blank'>Go to course</a></p>"
|
| 22 |
examples = ['siamese.jpg','pug.jpg']
|
| 23 |
-
interpretation='default'
|
| 24 |
-
enable_queue=True
|
| 25 |
|
| 26 |
gr.Interface(fn=predict,
|
| 27 |
-
inputs=gr.Image(
|
| 28 |
outputs=gr.Label(num_top_classes=3),
|
| 29 |
title=title,
|
| 30 |
description=description,
|
| 31 |
article=article,
|
| 32 |
-
examples=examples
|
| 33 |
-
interpretation=interpretation,
|
| 34 |
-
enable_queue=enable_queue).launch()
|
|
|
|
| 20 |
description = "A pet breed classifier trained on the Oxford Pets dataset using fastai. Created as a demo from the course by Jeremy Howard."
|
| 21 |
article="<p style='text-align: center'><a href='https://course.fast.ai/' target='_blank'>Go to course</a></p>"
|
| 22 |
examples = ['siamese.jpg','pug.jpg']
|
|
|
|
|
|
|
| 23 |
|
| 24 |
gr.Interface(fn=predict,
|
| 25 |
+
inputs=gr.Image(),
|
| 26 |
outputs=gr.Label(num_top_classes=3),
|
| 27 |
title=title,
|
| 28 |
description=description,
|
| 29 |
article=article,
|
| 30 |
+
examples=examples).launch()
|
|
|
|
|
|