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