mizoru commited on
Commit
c67e62e
1 Parent(s): 1654da2

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('xresnet50_pitch3.pkl')
14
  labels = learn.dls.vocab
15
 
16
  def predict(Record, Upload):
17
- if path_upload: path = Upload
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