AItool commited on
Commit
c93f364
1 Parent(s): 3099663

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ learn = load_learner('model.pkl')
14
  categories =('Virtual Staging','Real')
15
 
16
  def classify_image(img):
17
- pred,idx,probs = learn.predict(im)
18
  return dict(zip(categories,map(float,probs)))
19
 
20
  #*** We have to cast to float above because KAGGLE does not return number on the answer it returns tensors, and Gradio does not deal with numpy so we have to cast to float
 
14
  categories =('Virtual Staging','Real')
15
 
16
  def classify_image(img):
17
+ pred,idx,probs = learn.predict(img)
18
  return dict(zip(categories,map(float,probs)))
19
 
20
  #*** We have to cast to float above because KAGGLE does not return number on the answer it returns tensors, and Gradio does not deal with numpy so we have to cast to float