Spaces:
Build error
Build error
fcernafukuzaki
commited on
Commit
•
02d9707
1
Parent(s):
ccceb49
Update app.py
Browse files
app.py
CHANGED
@@ -121,14 +121,22 @@ def yolo(size, iou, conf, im):
|
|
121 |
|
122 |
|
123 |
|
124 |
-
in1 = gr.inputs.Radio(['640', '1280'], label="Tamaño de la imagen", type='value')
|
125 |
-
in2 = gr.inputs.Slider(minimum=0, maximum=1, step=0.05, label='NMS IoU threshold')
|
126 |
-
in3 = gr.inputs.Slider(minimum=0, maximum=1, step=0.05, label='Umbral o threshold')
|
127 |
-
in4 = gr.inputs.Image(type='pil', label="Original Image")
|
128 |
-
|
129 |
-
out2 = gr.outputs.Image(type="pil", label="YOLOv5")
|
130 |
-
out3 = gr.outputs.Dataframe(label="Cantidad_especie", headers=['Cantidad','Especie'], type="pandas")
|
131 |
-
out4 = gr.outputs.JSON(label="JSON")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
#-------------- Text-----
|
133 |
title = 'Trampas Barceló'
|
134 |
description = """
|
|
|
121 |
|
122 |
|
123 |
|
124 |
+
#in1 = gr.inputs.Radio(['640', '1280'], label="Tamaño de la imagen", type='value')
|
125 |
+
#in2 = gr.inputs.Slider(minimum=0, maximum=1, step=0.05, label='NMS IoU threshold')
|
126 |
+
#in3 = gr.inputs.Slider(minimum=0, maximum=1, step=0.05, label='Umbral o threshold')
|
127 |
+
#in4 = gr.inputs.Image(type='pil', label="Original Image")
|
128 |
+
|
129 |
+
#out2 = gr.outputs.Image(type="pil", label="YOLOv5")
|
130 |
+
#out3 = gr.outputs.Dataframe(label="Cantidad_especie", headers=['Cantidad','Especie'], type="pandas")
|
131 |
+
#out4 = gr.outputs.JSON(label="JSON")
|
132 |
+
in1 = gr.Radio(['640', '1280'], label="Tamaño de la imagen", type='value')
|
133 |
+
in2 = gr.Slider(minimum=0, maximum=1, step=0.05, label='NMS IoU threshold')
|
134 |
+
in3 = gr.Slider(minimum=0, maximum=1, step=0.05, label='Umbral o threshold')
|
135 |
+
in4 = gr.Image(type='pil', label="Original Image")
|
136 |
+
|
137 |
+
out2 = gr.Image(type="pil", label="YOLOv5")
|
138 |
+
out3 = gr.Dataframe(label="Cantidad_especie", headers=['Cantidad','Especie'], type="pandas")
|
139 |
+
out4 = gr.JSON(label="JSON")
|
140 |
#-------------- Text-----
|
141 |
title = 'Trampas Barceló'
|
142 |
description = """
|