Spaces:
Sleeping
Sleeping
Hewage
commited on
Commit
·
bd13707
1
Parent(s):
853d02a
updated app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
__all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'is_cat', 'classify_image']
|
2 |
|
|
|
3 |
# %% app.ipynb 2
|
4 |
from fastai.vision.all import *
|
5 |
import gradio as gr
|
@@ -22,7 +23,7 @@ def classify_image(img):
|
|
22 |
from gradio.components import Image, Label
|
23 |
|
24 |
# %% app.ipynb 9
|
25 |
-
image = Image(
|
26 |
label = Label()
|
27 |
examples = ['benz.jpg', 'ferrari.jpg']
|
28 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
1 |
__all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'is_cat', 'classify_image']
|
2 |
|
3 |
+
#import timm
|
4 |
# %% app.ipynb 2
|
5 |
from fastai.vision.all import *
|
6 |
import gradio as gr
|
|
|
23 |
from gradio.components import Image, Label
|
24 |
|
25 |
# %% app.ipynb 9
|
26 |
+
image = Image(width=192, height=192)
|
27 |
label = Label()
|
28 |
examples = ['benz.jpg', 'ferrari.jpg']
|
29 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|