Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,8 @@ for dirname, _, filenames in os.walk('/kaggle/input'):
|
|
9 |
|
10 |
from fastai.vision.all import *
|
11 |
import gradio as gr
|
12 |
-
share = True
|
13 |
learn = load_learner('model.pkl')
|
14 |
-
|
15 |
categories = ('Dog', 'Cat')
|
16 |
|
17 |
def classify_image(img):
|
@@ -22,4 +21,4 @@ image = "image"
|
|
22 |
label = "label"
|
23 |
|
24 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label)
|
25 |
-
intf.launch(inline=False
|
|
|
9 |
|
10 |
from fastai.vision.all import *
|
11 |
import gradio as gr
|
|
|
12 |
learn = load_learner('model.pkl')
|
13 |
+
def is_cat(x): return x[0].isupper()
|
14 |
categories = ('Dog', 'Cat')
|
15 |
|
16 |
def classify_image(img):
|
|
|
21 |
label = "label"
|
22 |
|
23 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label)
|
24 |
+
intf.launch(inline=False)
|