hernanhgm commited on
Commit
22dd3bd
·
1 Parent(s): 78e151c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,7 +11,8 @@ def clasificador(value):
11
  data_scaled = scaler.transform(data)
12
  pred = model.predict(data_scaled)
13
 
14
- sexo = pred[0]
 
15
 
16
  return sexo
17
 
@@ -25,7 +26,7 @@ Para ello basta con medir la longitu del pico.
25
  """
26
 
27
  demo = gr.Interface(
28
- fn=funcion,
29
  inputs=["number"],
30
  outputs="text",
31
  title=title,
 
11
  data_scaled = scaler.transform(data)
12
  pred = model.predict(data_scaled)
13
 
14
+ label = ['hembra', 'macho']
15
+ sexo = label[pred[0]]
16
 
17
  return sexo
18
 
 
26
  """
27
 
28
  demo = gr.Interface(
29
+ fn=clasificador,
30
  inputs=["number"],
31
  outputs="text",
32
  title=title,