rubend18 commited on
Commit
05c901d
·
1 Parent(s): d71ddc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -20,16 +20,19 @@ def string_to_list(string):
20
  response = list(map(int, substrings))
21
  return response
22
 
23
-
24
-
 
 
25
  import gradio as gr
26
 
27
  def function(valores):
28
- return entropy(string_to_list(valores))
29
 
30
  demo = gr.Interface(
31
  fn=function,
32
  inputs=gr.Textbox(lines=3, label="Valores", placeholder="Ingrese los valores separados por comas..."),
33
  outputs=gr.Textbox(lines=3, label="Resultado", placeholder="Aquí aparece su saludo..."),
34
  )
 
35
  demo.launch()
 
20
  response = list(map(int, substrings))
21
  return response
22
 
23
+ # ********************************************************************************
24
+ # INTERFAZ
25
+ # ********************************************************************************
26
+
27
  import gradio as gr
28
 
29
  def function(valores):
30
+ return entropy(string_to_list("valores"))
31
 
32
  demo = gr.Interface(
33
  fn=function,
34
  inputs=gr.Textbox(lines=3, label="Valores", placeholder="Ingrese los valores separados por comas..."),
35
  outputs=gr.Textbox(lines=3, label="Resultado", placeholder="Aquí aparece su saludo..."),
36
  )
37
+
38
  demo.launch()