Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,21 +93,34 @@ def app():
|
|
93 |
outputs=[output_numpy],
|
94 |
)
|
95 |
|
|
|
96 |
gradio_app = gr.Blocks()
|
|
|
97 |
with gradio_app:
|
98 |
gr.HTML(
|
99 |
"""
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
104 |
gr.HTML(
|
105 |
"""
|
106 |
<h3 style='text-align: center'>
|
|
|
107 |
</h3>
|
108 |
-
"""
|
|
|
109 |
with gr.Row():
|
110 |
with gr.Column():
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
gradio_app.launch(debug=True)
|
|
|
93 |
outputs=[output_numpy],
|
94 |
)
|
95 |
|
96 |
+
# Definindo a aplicação Gradio
|
97 |
gradio_app = gr.Blocks()
|
98 |
+
|
99 |
with gradio_app:
|
100 |
gr.HTML(
|
101 |
"""
|
102 |
+
<h1 style='text-align: center'>
|
103 |
+
YOLOv9 Base Model
|
104 |
+
</h1>
|
105 |
+
"""
|
106 |
+
)
|
107 |
gr.HTML(
|
108 |
"""
|
109 |
<h3 style='text-align: center'>
|
110 |
+
Aplicação para ajudar nos resgates do RS
|
111 |
</h3>
|
112 |
+
"""
|
113 |
+
)
|
114 |
with gr.Row():
|
115 |
with gr.Column():
|
116 |
+
# Carregar uma imagem de entrada e exibir a imagem processada
|
117 |
+
image_input = gr.Image(type="pil", label="Carregue uma imagem")
|
118 |
+
image_output = gr.Image(label="Resultado da Detecção")
|
119 |
+
|
120 |
+
# Botão para acionar o processamento da imagem
|
121 |
+
process_button = gr.Button("Processar Imagem")
|
122 |
+
|
123 |
+
# Conectar o botão à função de processamento
|
124 |
+
process_button.click(fn=process_image, inputs=image_input, outputs=image_output)
|
125 |
+
|
126 |
gradio_app.launch(debug=True)
|