Spaces:
Sleeping
Sleeping
Commit
·
3a9be84
1
Parent(s):
c901da2
is_cat added back in
Browse files
app.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from fastai.vision.all import *
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
learn = load_learner('model.pkl')
|
| 5 |
|
| 6 |
categories = ('Dog', 'Cat')
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from fastai.vision.all import *
|
| 3 |
|
| 4 |
+
def is_cat(x):
|
| 5 |
+
return x[0].isupper()
|
| 6 |
+
|
| 7 |
learn = load_learner('model.pkl')
|
| 8 |
|
| 9 |
categories = ('Dog', 'Cat')
|