Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,13 +56,13 @@ def classify_image(inp):
|
|
| 56 |
output_image = np.array(output_image)
|
| 57 |
|
| 58 |
# Retorna uma lista com a imagem de entrada e o rótulo
|
| 59 |
-
return [inp, output_image]
|
| 60 |
|
| 61 |
# Crie uma interface Gradio
|
| 62 |
iface = gr.Interface(
|
| 63 |
fn=classify_image,
|
| 64 |
inputs=gr.inputs.Image(shape=(192, 256)),
|
| 65 |
-
outputs=[gr.outputs.Image(type="numpy"), gr.outputs.Image(type="numpy")
|
| 66 |
capture_session=True,
|
| 67 |
title="Detecção de Catarata",
|
| 68 |
description="Esta interface permite a detecção de catarata em imagens de olhos.",
|
|
|
|
| 56 |
output_image = np.array(output_image)
|
| 57 |
|
| 58 |
# Retorna uma lista com a imagem de entrada e o rótulo
|
| 59 |
+
return [inp, output_image]
|
| 60 |
|
| 61 |
# Crie uma interface Gradio
|
| 62 |
iface = gr.Interface(
|
| 63 |
fn=classify_image,
|
| 64 |
inputs=gr.inputs.Image(shape=(192, 256)),
|
| 65 |
+
outputs=[gr.outputs.Image(type="numpy"), gr.outputs.Image(type="numpy")],
|
| 66 |
capture_session=True,
|
| 67 |
title="Detecção de Catarata",
|
| 68 |
description="Esta interface permite a detecção de catarata em imagens de olhos.",
|