NoCrypt commited on
Commit
f6edf83
1 Parent(s): 61ba56b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -87,7 +87,9 @@ def predict(image: PIL.Image.Image, score_threshold: float,
87
  if prob < score_threshold:
88
  continue
89
  res[label] = prob
90
- return res
 
 
91
 
92
 
93
  def main():
 
87
  if prob < score_threshold:
88
  continue
89
  res[label] = prob
90
+ b = dict(sorted(res.items(),key=lambda item:item[1], reverse=True))
91
+ a = ', '.join(list(b.keys())).replace('_',' ')
92
+ return a
93
 
94
 
95
  def main():