Spaces:
Sleeping
Sleeping
busebaser
commited on
Commit
·
a37bcd0
1
Parent(s):
39ff025
Fix: Added missing function is_cat before loading model
Browse files
app.py
CHANGED
@@ -2,6 +2,10 @@ from fastai.vision.all import load_learner
|
|
2 |
import gradio as gr
|
3 |
from PIL import Image
|
4 |
|
|
|
|
|
|
|
|
|
5 |
# Load the trained model
|
6 |
model = load_learner('model.pkl')
|
7 |
|
|
|
2 |
import gradio as gr
|
3 |
from PIL import Image
|
4 |
|
5 |
+
# Define the missing function
|
6 |
+
def is_cat(x):
|
7 |
+
return x[0].isupper()
|
8 |
+
|
9 |
# Load the trained model
|
10 |
model = load_learner('model.pkl')
|
11 |
|