chenchangliu commited on
Commit
9705f70
·
verified ·
1 Parent(s): ded23b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,8 +78,8 @@ def predict(image: Image.Image):
78
  sp_conf = float(prob_sp[sp_id].item())
79
  st_conf = float(prob_st[st_id].item())
80
 
81
- sp_text = f"{SPECIES[sp_id]} (id={sp_id}, score={sp_conf:.3f})"
82
- st_text = f"{STATE[st_id]} (id={st_id}, score={st_conf:.3f})"
83
 
84
  return sp_text, st_text
85
 
 
78
  sp_conf = float(prob_sp[sp_id].item())
79
  st_conf = float(prob_st[st_id].item())
80
 
81
+ sp_text = f"{SPECIES[sp_id]} (score={sp_conf:.3f})"
82
+ st_text = f"{STATE[st_id]} (score={st_conf:.3f})"
83
 
84
  return sp_text, st_text
85