Spaces:
Runtime error
Runtime error
Geraldine J
commited on
Commit
路
135b6f6
1
Parent(s):
235b9a3
Update arrayLista
Browse files
app.py
CHANGED
@@ -62,14 +62,14 @@ def listJSON(a,b,c,d):
|
|
62 |
return json_string
|
63 |
|
64 |
def arrayLista(a,b):
|
65 |
-
strlist =[
|
66 |
-
strlist
|
67 |
-
strlist[0].add(a)
|
68 |
if b =='Pelicano\nSp':
|
69 |
-
strlist
|
70 |
else:
|
71 |
-
strlist
|
72 |
-
|
|
|
73 |
return df
|
74 |
|
75 |
def yolo(size, iou, conf, im):
|
@@ -99,7 +99,7 @@ in3 = gr.inputs.Slider(minimum=0, maximum=1, step=0.05, default=0.50, label='Umb
|
|
99 |
in4 = gr.inputs.Image(type='pil', label="Original Image")
|
100 |
|
101 |
out2 = gr.outputs.Image(type="pil", label="Identificaci贸n con Yolov5")
|
102 |
-
out3 = gr.outputs.Dataframe(label="Descripci贸n")
|
103 |
out4 = gr.outputs.JSON(label="JSON")
|
104 |
#-------------- Text-----
|
105 |
title = 'OceanApp'
|
|
|
62 |
return json_string
|
63 |
|
64 |
def arrayLista(a,b):
|
65 |
+
strlist =[]
|
66 |
+
strlist.append(a)
|
|
|
67 |
if b =='Pelicano\nSp':
|
68 |
+
strlist.append('Pelicano')
|
69 |
else:
|
70 |
+
strlist.append(b)
|
71 |
+
strlista = [strlist]
|
72 |
+
df = pd.DataFrame(strlista,columns=['Cantidad','Especie'])
|
73 |
return df
|
74 |
|
75 |
def yolo(size, iou, conf, im):
|
|
|
99 |
in4 = gr.inputs.Image(type='pil', label="Original Image")
|
100 |
|
101 |
out2 = gr.outputs.Image(type="pil", label="Identificaci贸n con Yolov5")
|
102 |
+
out3 = gr.outputs.Dataframe(label="Descripci贸n", headers=['Cantidad','Especie'])
|
103 |
out4 = gr.outputs.JSON(label="JSON")
|
104 |
#-------------- Text-----
|
105 |
title = 'OceanApp'
|