added function iscat
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from fastai.learner import load_learner # Assuming FastAI is used
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Load your pre-trained FastAI model (replace 'model.pkl' with your actual model path)
|
| 8 |
model = load_learner('model.pkl')
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from fastai.learner import load_learner # Assuming FastAI is used
|
| 3 |
|
| 4 |
+
# Define a custom function named 'is_cat' (replace with your actual function)
|
| 5 |
+
def is_cat(x):
|
| 6 |
+
# Your actual function logic here
|
| 7 |
+
return x[0].isupper()
|
| 8 |
|
| 9 |
# Load your pre-trained FastAI model (replace 'model.pkl' with your actual model path)
|
| 10 |
model = load_learner('model.pkl')
|