Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def predict_image(input_image):
|
|
57 |
# Use o Gradio para criar um gráfico de barras horizontais
|
58 |
bars = []
|
59 |
for class_name, probability in zip(class_names, probabilities):
|
60 |
-
bars.append(gr.
|
61 |
|
62 |
return bars
|
63 |
|
@@ -65,7 +65,7 @@ def predict_image(input_image):
|
|
65 |
iface = gr.Interface(
|
66 |
fn=predict_image,
|
67 |
inputs="image",
|
68 |
-
outputs=
|
69 |
interpretation="default"
|
70 |
)
|
71 |
|
|
|
57 |
# Use o Gradio para criar um gráfico de barras horizontais
|
58 |
bars = []
|
59 |
for class_name, probability in zip(class_names, probabilities):
|
60 |
+
bars.append(gr.outputs.Bar(label=class_name, confidence=probability))
|
61 |
|
62 |
return bars
|
63 |
|
|
|
65 |
iface = gr.Interface(
|
66 |
fn=predict_image,
|
67 |
inputs="image",
|
68 |
+
outputs="text",
|
69 |
interpretation="default"
|
70 |
)
|
71 |
|