Gords commited on
Commit
694b10c
·
1 Parent(s): 520f4ae

added function iscat

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- # NOTE: If you used any custom preprocessing steps or functions when training your model,
5
- # make sure to include them here.
 
 
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')