Update app.py
Browse files
app.py
CHANGED
|
@@ -44,11 +44,11 @@ def recognize_image(image):
|
|
| 44 |
except Exception as e:
|
| 45 |
return f"Erro ao processar a imagem: {str(e)}"
|
| 46 |
|
| 47 |
-
#
|
| 48 |
interface = gr.Interface(
|
| 49 |
fn=recognize_image,
|
| 50 |
-
inputs=gr.Image(type="numpy"), # Entrada
|
| 51 |
-
outputs="text" # Resultado
|
| 52 |
)
|
| 53 |
|
| 54 |
interface.launch()
|
|
|
|
| 44 |
except Exception as e:
|
| 45 |
return f"Erro ao processar a imagem: {str(e)}"
|
| 46 |
|
| 47 |
+
# Configuração do Gradio
|
| 48 |
interface = gr.Interface(
|
| 49 |
fn=recognize_image,
|
| 50 |
+
inputs=gr.Image(type="numpy"), # Entrada configurada como NumPy
|
| 51 |
+
outputs="text" # Resultado configurado como texto
|
| 52 |
)
|
| 53 |
|
| 54 |
interface.launch()
|