Sjleeiv commited on
Commit
c11302c
·
1 Parent(s): 628ac72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def predict(input_img):
100
 
101
  # Create a custom bar chart using gr.Table
102
  prob_values = predictions[0].tolist()
103
- bar_chart = gr.Table(data=[[labels_list[i], prob_values[i]] for i in range(len(labels_list))], columns=["Label", "Probability"])
104
 
105
  return input_img, {
106
  "Predicted Class": labels_list[predicted_class],
 
100
 
101
  # Create a custom bar chart using gr.Table
102
  prob_values = predictions[0].tolist()
103
+ bar_chart = gr.Tabs(tabs=[[labels_list[i], prob_values[i]] for i in range(len(labels_list))], title="Probabilities")
104
 
105
  return input_img, {
106
  "Predicted Class": labels_list[predicted_class],