mizoru commited on
Commit
c18bef7
·
1 Parent(s): 2795f90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def predict(Record, Upload):
18
  else: path = Record
19
  spec,pred,pred_idx,probs = learn.predict(str(path), with_input=True)
20
 
21
- return [{labels[i]: float(probs[i]) for i in range(len(labels))},spec]
22
 
23
 
24
  title = "Japanese Pitch Accent Pattern Detector"
 
18
  else: path = Record
19
  spec,pred,pred_idx,probs = learn.predict(str(path), with_input=True)
20
 
21
+ return [{labels[i]: float(probs[i]) for i in range(len(labels))}, show_image(spec)]
22
 
23
 
24
  title = "Japanese Pitch Accent Pattern Detector"