tonyliu404 commited on
Commit
eef3a21
·
verified ·
1 Parent(s): 05c0344

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -298,7 +298,7 @@ def display_prediction_graph(class_names, confidences):
298
  # Determine the top prediction
299
  class_names.reverse()
300
  values.reverse()
301
- top_prediction = class_names[0]
302
 
303
  # Create a horizontal bar chart
304
  fig = go.Figure(go.Bar(
 
298
  # Determine the top prediction
299
  class_names.reverse()
300
  values.reverse()
301
+ top_prediction = class_names[-1]
302
 
303
  # Create a horizontal bar chart
304
  fig = go.Figure(go.Bar(