Spaces:
Sleeping
Sleeping
tonyliu404
commited on
Update app.py
Browse files
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[
|
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(
|