Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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
|