jhowardjr commited on
Commit
0f69abe
1 Parent(s): f829721

add last two examples

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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', 'image', 'examples', 'is_cat', 'predict']
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
- image = gr.Image(width=512, height=512)
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)