Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 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],
|