mizoru commited on
Commit
2693dff
·
1 Parent(s): 2ac0421

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -21,6 +21,7 @@ def predict(Record, Upload):
21
  spec,pred,pred_idx,probs = learn.predict(str(path), with_input=True)
22
  fig,ax = plt.subplots(figsize=(16,10))
23
  show_image(spec, ax=ax)
 
24
  return [{labels[i]: float(probs[i]) for i in range(len(labels))}, fig]
25
 
26
 
 
21
  spec,pred,pred_idx,probs = learn.predict(str(path), with_input=True)
22
  fig,ax = plt.subplots(figsize=(16,10))
23
  show_image(spec, ax=ax)
24
+ ax.invert_yaxis()
25
  return [{labels[i]: float(probs[i]) for i in range(len(labels))}, fig]
26
 
27