ArchieIndian commited on
Commit
31bbf67
·
1 Parent(s): f0e5c35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -2,10 +2,7 @@ import gradio as gr
2
  from fastai.vision.all import *
3
  import skimage
4
  def is_cat(x): return x[0].isupper()
5
-
6
- dls = ImageDataLoaders.from_name_func(
7
- path, get_image_files(path), valid_pct=0.2, seed=42,
8
- label_func=is_cat, item_tfms=Resize(224))
9
  learn = load_learner('export.pkl')
10
  labels = learn.dls.vocab
11
  def predict(img):
 
2
  from fastai.vision.all import *
3
  import skimage
4
  def is_cat(x): return x[0].isupper()
5
+
 
 
 
6
  learn = load_learner('export.pkl')
7
  labels = learn.dls.vocab
8
  def predict(img):