Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|