Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from fastai.vision.all import *
|
3 |
|
4 |
learn = load_learner('export.pkl')
|
5 |
-
categories = ('
|
6 |
|
7 |
def predict(img):
|
8 |
pred, idx, probs = learn.predict(img)
|
|
|
2 |
from fastai.vision.all import *
|
3 |
|
4 |
learn = load_learner('export.pkl')
|
5 |
+
categories = ('damaged', 'pristine')
|
6 |
|
7 |
def predict(img):
|
8 |
pred, idx, probs = learn.predict(img)
|