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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ def string_to_list(string):
17
  substrings = string.split(',')
18
 
19
  # Convierte cada subcadena en un número entero y agrega a una lista
20
- response = list(map(int, substrings))
21
  return response
22
 
23
  # ********************************************************************************
@@ -27,7 +27,7 @@ def string_to_list(string):
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,
 
17
  substrings = string.split(',')
18
 
19
  # Convierte cada subcadena en un número entero y agrega a una lista
20
+ response = substrings
21
  return response
22
 
23
  # ********************************************************************************
 
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,