Update app.py
Browse files
app.py
CHANGED
@@ -44,11 +44,12 @@ def classify_image_with_overlay(img):
|
|
44 |
iface = gr.Interface(
|
45 |
fn=classify_image_with_overlay,
|
46 |
inputs=gr.inputs.Image(),
|
47 |
-
outputs=gr.outputs.Image(type="numpy"),
|
48 |
live=True,
|
49 |
title="ViT Image Classifier with Overlay",
|
50 |
description="Upload an image for classification with label overlay.",
|
51 |
)
|
52 |
|
|
|
53 |
if __name__ == "__main__":
|
54 |
iface.launch()
|
|
|
44 |
iface = gr.Interface(
|
45 |
fn=classify_image_with_overlay,
|
46 |
inputs=gr.inputs.Image(),
|
47 |
+
outputs=gr.outputs.Image(type="numpy", output_width=400, output_height=400), # Ajuste o tamanho da saída desejado
|
48 |
live=True,
|
49 |
title="ViT Image Classifier with Overlay",
|
50 |
description="Upload an image for classification with label overlay.",
|
51 |
)
|
52 |
|
53 |
+
|
54 |
if __name__ == "__main__":
|
55 |
iface.launch()
|