jadavis commited on
Commit
f953b0c
1 Parent(s): b94962d

Another fix

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. inputted/placeholder.txt +0 -1
app.py CHANGED
@@ -5,8 +5,8 @@ learn=load_learner("model.pkl")
5
 
6
  labels=learn.dls.vocab
7
  def sample_predict(img):
 
8
  img = PILImage.create(img)
9
- img.save("inputted/image"+"_"+str(len(os.listdir("inputted")))+".jpg")
10
  pred,pred_idx,probs=learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
 
5
 
6
  labels=learn.dls.vocab
7
  def sample_predict(img):
8
+ print(img)
9
  img = PILImage.create(img)
 
10
  pred,pred_idx,probs=learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
inputted/placeholder.txt DELETED
@@ -1 +0,0 @@
1
- Text