Spaces:
Runtime error
Runtime error
Commit ·
e233cfd
1
Parent(s): a1350c8
added is_cat function to app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,8 @@ import gradio as gr
|
|
| 3 |
|
| 4 |
learn = load_learner('model.pkl')
|
| 5 |
|
|
|
|
|
|
|
| 6 |
categories = ('Dog', 'Cat')
|
| 7 |
|
| 8 |
def classify_image(img):
|
|
|
|
| 3 |
|
| 4 |
learn = load_learner('model.pkl')
|
| 5 |
|
| 6 |
+
def is_cat(x): return x[0].isupper()
|
| 7 |
+
|
| 8 |
categories = ('Dog', 'Cat')
|
| 9 |
|
| 10 |
def classify_image(img):
|