Upload app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# AUTOGENERATED! DO NOT EDIT! File to edit: . (unless otherwise specified).
|
| 2 |
|
| 3 |
-
__all__ = ['learn', 'classify_image', 'categories', 'classifier', '
|
| 4 |
|
| 5 |
# Cell
|
| 6 |
from fastai.vision.all import *
|
|
@@ -20,7 +20,7 @@ def classify_image(img):
|
|
| 20 |
# Cell
|
| 21 |
image = gr.inputs.Image(shape=(192, 192))
|
| 22 |
label = gr.outputs.Label()
|
| 23 |
-
examples = ['
|
| 24 |
|
| 25 |
# Cell
|
| 26 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
|
| 1 |
# AUTOGENERATED! DO NOT EDIT! File to edit: . (unless otherwise specified).
|
| 2 |
|
| 3 |
+
__all__ = ['learn', 'classify_image', 'categories', 'classifier', 'dog','image', 'label', 'examples', 'intf']
|
| 4 |
|
| 5 |
# Cell
|
| 6 |
from fastai.vision.all import *
|
|
|
|
| 20 |
# Cell
|
| 21 |
image = gr.inputs.Image(shape=(192, 192))
|
| 22 |
label = gr.outputs.Label()
|
| 23 |
+
examples = ['dog.png','dog1.jpg','dog2.jpg']
|
| 24 |
|
| 25 |
# Cell
|
| 26 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|