Spaces:
Build error
Build error
fcernafukuzaki
commited on
Commit
•
0403add
1
Parent(s):
2b07e2c
Update app.py
Browse files
app.py
CHANGED
@@ -99,14 +99,14 @@ def yolo(size, iou, conf, im):
|
|
99 |
|
100 |
|
101 |
|
102 |
-
in1 = gr.Radio(['640', '1280'], label="Tamaño de la imagen", type='value')
|
103 |
-
in2 = gr.Slider(minimum=0, maximum=1, step=0.05, label='NMS IoU threshold')
|
104 |
-
in3 = gr.Slider(minimum=0, maximum=1, step=0.05, label='Umbral o threshold')
|
105 |
-
in4 = gr.Image(type='pil', label="Original Image")
|
106 |
-
|
107 |
-
out2 = gr.Image(type="pil", label="YOLOv5")
|
108 |
-
out3 = gr.Dataframe(label="Cantidad_especie", headers=['Cantidad','Especie'], type="pandas")
|
109 |
-
out4 = gr.JSON(label="JSON")
|
110 |
#-------------- Text-----
|
111 |
title = 'Trampas Barceló'
|
112 |
description = """
|
@@ -133,7 +133,7 @@ iface = gr.Interface(yolo,
|
|
133 |
#flagging_callback=hf_writer
|
134 |
)
|
135 |
|
136 |
-
iface.launch(debug=True)
|
137 |
|
138 |
"""For YOLOv5 PyTorch Hub inference with **PIL**, **OpenCV**, **Numpy** or **PyTorch** inputs please see the full [YOLOv5 PyTorch Hub Tutorial](https://github.com/ultralytics/yolov5/issues/36).
|
139 |
## Citation
|
|
|
99 |
|
100 |
|
101 |
|
102 |
+
in1 = gr.inputs.Radio(['640', '1280'], label="Tamaño de la imagen", type='value')
|
103 |
+
in2 = gr.inputs.Slider(minimum=0, maximum=1, step=0.05, label='NMS IoU threshold')
|
104 |
+
in3 = gr.inputs.Slider(minimum=0, maximum=1, step=0.05, label='Umbral o threshold')
|
105 |
+
in4 = gr.inputs.Image(type='pil', label="Original Image")
|
106 |
+
|
107 |
+
out2 = gr.outputs.Image(type="pil", label="YOLOv5")
|
108 |
+
out3 = gr.outputs.Dataframe(label="Cantidad_especie", headers=['Cantidad','Especie'], type="pandas")
|
109 |
+
out4 = gr.outputs.JSON(label="JSON")
|
110 |
#-------------- Text-----
|
111 |
title = 'Trampas Barceló'
|
112 |
description = """
|
|
|
133 |
#flagging_callback=hf_writer
|
134 |
)
|
135 |
|
136 |
+
iface.launch(enable_queue=True, debug=True)
|
137 |
|
138 |
"""For YOLOv5 PyTorch Hub inference with **PIL**, **OpenCV**, **Numpy** or **PyTorch** inputs please see the full [YOLOv5 PyTorch Hub Tutorial](https://github.com/ultralytics/yolov5/issues/36).
|
139 |
## Citation
|