Sjleeiv commited on
Commit
5daecdf
·
1 Parent(s): 357dbcc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -100,7 +100,8 @@ def predict(input_img):
100
 
101
  # Create a custom bar chart using gr.Tabs
102
  prob_values = predictions[0].tolist()
103
- bar_chart = gr.Tabs(tabs=[{"title": labels_list[i], "value": prob_values[i]} for i in range(len(labels_list))], title="Probabilities")
 
104
 
105
 
106
  return input_img, {
 
100
 
101
  # Create a custom bar chart using gr.Tabs
102
  prob_values = predictions[0].tolist()
103
+ bar_chart = gr.Bar(values=prob_values, labels=labels_list, title="Probabilities")
104
+
105
 
106
 
107
  return input_img, {