add last two examples
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
# AUTOGENERATED! DO NOT EDIT! File to edit: is_a_cat.ipynb.
|
2 |
|
3 |
# %% auto 0
|
4 |
-
__all__ = ['learn', 'labels', '
|
5 |
|
6 |
# %% is_a_cat.ipynb 1
|
7 |
from fastai.vision.all import *
|
@@ -20,8 +20,6 @@ def predict(img):
|
|
20 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
21 |
|
22 |
# %% is_a_cat.ipynb 4
|
23 |
-
|
24 |
-
|
25 |
-
examples = ["example1.webp"]
|
26 |
|
27 |
gr.Interface(fn=predict, inputs="image", examples=examples, outputs="label").launch(share=False)
|
|
|
1 |
# AUTOGENERATED! DO NOT EDIT! File to edit: is_a_cat.ipynb.
|
2 |
|
3 |
# %% auto 0
|
4 |
+
__all__ = ['learn', 'labels', 'examples', 'is_cat', 'predict']
|
5 |
|
6 |
# %% is_a_cat.ipynb 1
|
7 |
from fastai.vision.all import *
|
|
|
20 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
21 |
|
22 |
# %% is_a_cat.ipynb 4
|
23 |
+
examples = ["example1.webp","example2.webp","example3.webp"]
|
|
|
|
|
24 |
|
25 |
gr.Interface(fn=predict, inputs="image", examples=examples, outputs="label").launch(share=False)
|