Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
-
from fastai.vision.
|
3 |
|
4 |
def is_cat(x): return x[0].isupper()
|
5 |
|
6 |
-
learn = load_learner('model.
|
7 |
|
8 |
categories = ('Dog', 'Cat')
|
9 |
|
@@ -16,6 +16,6 @@ label = gr.outputs.Label()
|
|
16 |
examples = ['dog.jpg', 'cat.jpg', 'bear.jpg', 'bird.jpg', 'forest.jpg']
|
17 |
|
18 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
19 |
-
intf.launch(inline=False)
|
20 |
|
21 |
|
|
|
1 |
import gradio as gr
|
2 |
+
from fastai.vision.all import *
|
3 |
|
4 |
def is_cat(x): return x[0].isupper()
|
5 |
|
6 |
+
learn = load_learner('model.pkl')
|
7 |
|
8 |
categories = ('Dog', 'Cat')
|
9 |
|
|
|
16 |
examples = ['dog.jpg', 'cat.jpg', 'bear.jpg', 'bird.jpg', 'forest.jpg']
|
17 |
|
18 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
19 |
+
intf.launch(inline=False, share=True)
|
20 |
|
21 |
|