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