Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ learn = load_learner('xresnet50_pitch3.pkl')
|
|
14 |
labels = learn.dls.vocab
|
15 |
|
16 |
def predict(Record, Upload):
|
17 |
-
if
|
18 |
else: path = Record
|
19 |
pred,pred_idx,probs = learn.predict(str(path))
|
20 |
|
|
|
14 |
labels = learn.dls.vocab
|
15 |
|
16 |
def predict(Record, Upload):
|
17 |
+
if Upload: path = Upload
|
18 |
else: path = Record
|
19 |
pred,pred_idx,probs = learn.predict(str(path))
|
20 |
|