Javier Flores
commited on
Commit
•
ce74569
1
Parent(s):
599a2df
as
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import torch
|
2 |
import argparse
|
3 |
import gradio as gr
|
@@ -164,15 +165,21 @@ def Custom_detect(img):
|
|
164 |
|
165 |
return Image.fromarray(im0[:,:,::-1])
|
166 |
#add description
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
gr.Image("banner.jpg", width=400)
|
172 |
inp = gr.Image(type="pil")
|
173 |
output = gr.Image(type="pil")
|
174 |
|
175 |
examples=[["Examples/Image1.jpg","Image1"],["Examples/Image2.jpg","Image2"]]
|
176 |
|
177 |
-
io=gr.Interface(fn=Custom_detect, inputs=inp, outputs=output, title='Prueba de GuardIA',examples=examples,cache_examples=False)
|
178 |
io.launch()
|
|
|
1 |
+
from turtle import title
|
2 |
import torch
|
3 |
import argparse
|
4 |
import gradio as gr
|
|
|
165 |
|
166 |
return Image.fromarray(im0[:,:,::-1])
|
167 |
#add description
|
168 |
+
description = """Ejemplo de uso:
|
169 |
+
para la empresa GCC , la imagen debe contener cualquiera equipo contra acidentes personales
|
170 |
+
* Cascos de Seguridad. ...
|
171 |
+
* Tapones para oídos y Orejeras. ...
|
172 |
+
* Lentes de Seguridad. ...
|
173 |
+
* Respiradores. ...
|
174 |
+
* Chaleco de Seguridad. ...
|
175 |
+
* Guantes de seguridad. ...
|
176 |
+
* Botas de Seguridad. ...
|
177 |
+
* Fuentes"""
|
178 |
gr.Image("banner.jpg", width=400)
|
179 |
inp = gr.Image(type="pil")
|
180 |
output = gr.Image(type="pil")
|
181 |
|
182 |
examples=[["Examples/Image1.jpg","Image1"],["Examples/Image2.jpg","Image2"]]
|
183 |
|
184 |
+
io=gr.Interface(fn=Custom_detect, inputs=inp, outputs=output, title='Prueba de GuardIA',examples=examples,cache_examples=False,description=description)
|
185 |
io.launch()
|